Skip to content

Commit 465debc

Browse files
mikimclaude
andcommitted
ci: unify workflow across branches (add branch-aware upload guard) + sync lock
The workflow already selects PROD vs dev secrets by github.ref_name, so the upload-skip guard is written as `github.ref_name != 'master'` — the same file now behaves correctly on both branches (skips upload on master while dev is down; prod uploads as before). This makes build-and-deploy.yml byte-identical to master. Also adopt master's package-lock (includes the `engines` root block that prod's lock was missing) so the lockfiles match too. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 218c7bb commit 465debc

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ jobs:
5656
fi
5757
5858
- name: Deploy using WA Map Storage
59-
if: ${{ env.UPLOAD_MODE == 'MAP_STORAGE' }}
59+
# dev server (dev.wa.moss.land) is offline — skip the upload on master until it
60+
# returns. The build still runs above, so pushes to master keep validating the code.
61+
# prod is unaffected (ref_name != 'master'). Re-enable for master by dropping this guard.
62+
if: ${{ env.UPLOAD_MODE == 'MAP_STORAGE' && github.ref_name != 'master' }}
6063
run: npm run upload-only
6164

6265
- name: Deploy using Github Pages

package-lock.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)