release(v1.7.1): stamp-assets.sh invoke via bash

This commit is contained in:
Ryan
2025-10-29 16:19:35 -04:00
committed by GitHub
parent 0469d183de
commit 04be05ad1e
2 changed files with 18 additions and 3 deletions

View File

@@ -55,6 +55,15 @@ jobs:
echo "exists=false" >> "$GITHUB_OUTPUT"
fi
# Ensure the stamper is executable and has LF endings (helps if edited on Windows)
- name: Prep stamper script
if: steps.tagcheck.outputs.exists == 'false'
shell: bash
run: |
set -euo pipefail
sed -i 's/\r$//' scripts/stamp-assets.sh || true
chmod +x scripts/stamp-assets.sh
- name: Build zip artifact (stamped)
if: steps.tagcheck.outputs.exists == 'false'
shell: bash
@@ -71,8 +80,8 @@ jobs:
--exclude '.dockerignore' --exclude '.gitattributes' --exclude '.gitignore' \
./ staging/
# Stamp IN THE STAGING COPY
./scripts/stamp-assets.sh "${VER}" "$(pwd)/staging"
# Stamp IN THE STAGING COPY (invoke via bash to avoid exec-bit issues)
bash ./scripts/stamp-assets.sh "${VER}" "$(pwd)/staging"
- name: Verify placeholders are gone (staging)
if: steps.tagcheck.outputs.exists == 'false'