Refactor Backdrop <3

This commit is contained in:
meowarex
2026-08-14 16:55:27 +00:00
parent 79ea2e512d
commit 5d8e52ce9f
12 changed files with 97 additions and 126 deletions
+12
View File
@@ -6,6 +6,8 @@ on:
- main
paths-ignore:
- "**/*.md"
# Lets a release be re-run by hand from the Actions tab if a push event is ever missed.
workflow_dispatch:
jobs:
Version:
@@ -23,6 +25,16 @@ jobs:
BASE=$(cat .version | tr -d '[:space:]')
echo "version=$BASE" >> $GITHUB_OUTPUT
# Releasing onto an existing tag silently overwrites that release's assets, so a
# forgotten .version bump replaces history instead of publishing. Fail loudly instead.
# ls-remote, not rev-parse: actions/checkout does not fetch tags by default,
# so a local lookup would always miss and the guard would never fire.
if git ls-remote --exit-code --tags origin "refs/tags/v$BASE" >/dev/null 2>&1; then
echo "::error::Tag v$BASE already exists - bump .version before releasing." \
"Re-running this workflow as-is would overwrite the v$BASE release assets."
exit 1
fi
Build:
needs: Version
uses: ./.github/workflows/build.yml