mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
Aligns with the chip-plugin repos: - Use TAG (with v prefix) for gh release create, VER (stripped) for Changelist lookup and upload.php's version field. - curl --fail-with-body so server-side errors fail the workflow instead of passing silently. - Switch GH_TOKEN to the auto-provided GITHUB_TOKEN with explicit contents:write permission, dropping the dependency on a per-repo ACCESS_TOKEN PAT.
17 lines
320 B
Bash
Executable file
17 lines
320 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
cd "$(dirname "$0")"
|
|
ROOT=$(pwd)
|
|
|
|
cd $ROOT
|
|
|
|
VER=`cat VERSION`
|
|
|
|
# Check that the version exists in the Changelist.txt
|
|
if ! grep -q "^${VER}:*$" Changelist.txt; then
|
|
echo "Error: Version $VER not found in Changelist.txt"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Tagging [v$VER]"
|
|
git tag "v$VER" && git push origin "v$VER"
|