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'

View File

@@ -1,6 +1,6 @@
# Changelog
## Changes 10/29/2025 (v1.7.0)
## Changes 10/29/2025 (v1.7.0 & v1.7.1)
release(v1.7.0): asset cache-busting pipeline, public siteConfig cache, JS core split, and caching/security polish
@@ -64,6 +64,12 @@ release(v1.7.0): asset cache-busting pipeline, public siteConfig cache, JS core
- Proxies/edge caches: the new `?v=` scheme enables long-lived immutable caching; purge is automatic on version bump.
- If you previously read admin config directly on the client, it now reads `/api/siteConfig.php`.
### Additional changes/fixes for release
- `release-on-version.yml`
- normalize line endings (strip CRLF)
- stamp-assets.sh dont rely on the exec; invoke via bash
---
## Changes 10/28/2025 (v1.6.11)