Skip to content

Commit 01996f7

Browse files
committed
Refactor DEV version injection in deployment script for clarity and consistency
1 parent 021d268 commit 01996f7

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,9 @@ jobs:
5656
cp -r dev-content/* _site/dev/ 2>/dev/null || true
5757
cp -r dev-content/content _site/dev/ 2>/dev/null || true
5858
59-
# Inject DEV badge + epoch (visual display) and JS constant with DEV-EPOCH format
59+
# Inject DEV version (visual display) and JS constant with DEV-EPOCH format
6060
DEV_EPOCH=$(date -u +%s)
61-
# Replace the visible version text (whatever it is) with DEV + epoch
62-
sed -i 's|<span id="appVersion"[^>]*>[^<]*</span>|<span id="appVersion" class="text-xs text-slate-400">DEV-'${DEV_EPOCH}'</span>|' _site/dev/index.html
63-
# Inject into JS constant
61+
sed -i 's|MeshCore Wardrive</h1>|MeshCore Wardrive <span class="text-sm text-slate-400">DEV-'"${DEV_EPOCH}"'</span></h1>|' _site/dev/index.html
6462
sed -i 's|const APP_VERSION = "UNKNOWN";|const APP_VERSION = "DEV-'"${DEV_EPOCH}"'";|' _site/dev/content/wardrive.js
6563
6664
find _site -name ". git" -exec rm -rf {} + 2>/dev/null || true

0 commit comments

Comments
 (0)