fix(ci): use -r=<tag> for release builds instead of -s=CURRENT

When triggered by a tag push, pass the release tag to
do_debian_package.sh via -r= flag. Branch pushes continue
to use -s=CURRENT.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Isaac Connor
2026-02-18 19:32:52 -05:00
parent 1d56c5a8d9
commit de04e2fc2c
2 changed files with 12 additions and 2 deletions

View File

@@ -103,7 +103,12 @@ jobs:
# Tell gpg to use loopback + passphrase
export GPG_TTY=$(tty || true)
ls -l /bin/bash
./do_debian_package.sh -s=CURRENT -t=binary
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
TAG="${GITHUB_REF#refs/tags/}"
./do_debian_package.sh -r="$TAG" -t=binary -b=release-1.38
else
./do_debian_package.sh -s=CURRENT -t=binary -b=release-1.38
fi
- name: Cleanup
run: |
rm -rf *_zoneminder_release *.build

View File

@@ -97,7 +97,12 @@ jobs:
# Tell gpg to use loopback + passphrase
export GPG_TTY=$(tty || true)
ls -l /bin/bash
./do_debian_package.sh -s=CURRENT -t=binary
if [[ "$GITHUB_REF" == refs/tags/* ]]; then
TAG="${GITHUB_REF#refs/tags/}"
./do_debian_package.sh -r="$TAG" -t=binary -b=release-1.38
else
./do_debian_package.sh -s=CURRENT -t=binary -b=release-1.38
fi
- name: Cleanup
run: |
rm -rf *_zoneminder_release *.build