From 481cf45a10b04d885f8539f1877918e14f0b5762 Mon Sep 17 00:00:00 2001 From: MrAlders0n Date: Sun, 21 Dec 2025 14:41:24 -0500 Subject: [PATCH 1/3] chore: update version badge to 1.5.0 in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2061d87..8fa550a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # MeshCore GOME WarDriver -[![Version](https://img.shields.io/badge/version-1.4.1-blue.svg)](https://github.com/MrAlders0n/MeshCore-GOME-WarDriver/releases/tag/v1.4.1) +[![Version](https://img.shields.io/badge/version-1.5.0-blue.svg)](https://github.com/MrAlders0n/MeshCore-GOME-WarDriver/releases/tag/v1.5.0) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![Platform](https://img.shields.io/badge/platform-Android%20%7C%20iOS-orange.svg)](#platform-support) From a4542b278982129aa38d19bcd0953beaa8516a89 Mon Sep 17 00:00:00 2001 From: MrAlders0n Date: Sun, 21 Dec 2025 14:53:29 -0500 Subject: [PATCH 2/3] fix: update deployment script to inject release version into dev branch --- .github/workflows/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e769eda..70fb1b7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -48,10 +48,10 @@ jobs: mkdir -p _site cp -r main-content/* _site/ 2>/dev/null || true - # Inject version into main branch (visual display and JS constant) - sed -i 's|MeshCore Wardrive|MeshCore Wardrive '"${RELEASE_VERSION}"'|' _site/index.html - sed -i 's|const APP_VERSION = "UNKNOWN";|const APP_VERSION = "'"${RELEASE_VERSION}"'";|' _site/content/wardrive.js - + sed -i 's|]*>[^<]*|'"${RELEASE_VERSION}"'|' _site/dev/index.html + # Inject into JS constant + sed -i 's|const APP_VERSION = "UNKNOWN";|const APP_VERSION = "DEV-'"${RELEASE_VERSION}"'";|' _site/dev/content/wardrive.js + mkdir -p _site/dev cp -r dev-content/* _site/dev/ 2>/dev/null || true cp -r dev-content/content _site/dev/ 2>/dev/null || true From d73b625beaaddcecbc090520e95a9d168127ea10 Mon Sep 17 00:00:00 2001 From: MrAlders0n Date: Sun, 21 Dec 2025 14:58:43 -0500 Subject: [PATCH 3/3] refactor: reorganize deployment script for clarity and consistency in version injection --- .github/workflows/deploy.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 70fb1b7..e1d32bf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -47,23 +47,22 @@ jobs: run: | mkdir -p _site cp -r main-content/* _site/ 2>/dev/null || true - - sed -i 's|]*>[^<]*|'"${RELEASE_VERSION}"'|' _site/dev/index.html - # Inject into JS constant - sed -i 's|const APP_VERSION = "UNKNOWN";|const APP_VERSION = "DEV-'"${RELEASE_VERSION}"'";|' _site/dev/content/wardrive.js + # MAIN: inject release version into root site + sed -i 's|]*>[^<]*|'"${RELEASE_VERSION}"'|' _site/index.html + sed -i 's|const APP_VERSION = "UNKNOWN";|const APP_VERSION = "'"${RELEASE_VERSION}"'";|' _site/content/wardrive.js + + # DEV: copy dev site under /dev mkdir -p _site/dev cp -r dev-content/* _site/dev/ 2>/dev/null || true cp -r dev-content/content _site/dev/ 2>/dev/null || true - - # Inject DEV version (visual display) and JS constant with DEV-EPOCH format + + # DEV: inject DEV-EPOCH DEV_EPOCH=$(date -u +%s) - # Replace the visible version in the dedicated span (this is what the UI shows) sed -i 's|]*>[^<]*|DEV-'"${DEV_EPOCH}"'|' _site/dev/index.html - # Inject into JS constant sed -i 's|const APP_VERSION = "UNKNOWN";|const APP_VERSION = "DEV-'"${DEV_EPOCH}"'";|' _site/dev/content/wardrive.js - find _site -name ". git" -exec rm -rf {} + 2>/dev/null || true + find _site -name ".git" -exec rm -rf {} + 2>/dev/null || true find _site -name ".github" -exec rm -rf {} + 2>/dev/null || true - name: Upload artifact