File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ jobs:
4848 mkdir -p _site
4949 cp -r main-content/* _site/ 2>/dev/null || true
5050
51- # Inject version into main branch (visual display and JS constant)
52- sed -i 's|MeshCore Wardrive</h1>|MeshCore Wardrive <span class="text-sm text-slate-400">'"${RELEASE_VERSION}"'</span></h1>|' _site/index.html
53- sed -i 's|const APP_VERSION = "UNKNOWN";|const APP_VERSION = "'"${RELEASE_VERSION}"'";|' _site/content/wardrive.js
54-
51+ sed -i 's|<span id="appVersion"[^>]*>[^<]*</span>|<span id="appVersion" class="text-sm text-slate-400">'"${RELEASE_VERSION}"'</span>|' _site/dev/index.html
52+ # Inject into JS constant
53+ sed -i 's|const APP_VERSION = "UNKNOWN";|const APP_VERSION = "DEV- '"${RELEASE_VERSION}"'";|' _site/dev /content/wardrive.js
54+
5555 mkdir -p _site/dev
5656 cp -r dev-content/* _site/dev/ 2>/dev/null || true
5757 cp -r dev-content/content _site/dev/ 2>/dev/null || true
You can’t perform that action at this time.
0 commit comments