Skip to content

Commit d84b25c

Browse files
Merge pull request #2935 from rainlanguage/webapp-prod-manual-deploy
Make production webapp deploy manual (workflow_dispatch only)
2 parents eb5a3b2 + 3b22654 commit d84b25c

1 file changed

Lines changed: 5 additions & 17 deletions

File tree

‎.github/workflows/vercel-prod.yaml‎

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
##
22
## SECURITY MODEL FOR VERCEL PRODUCTION DEPLOYS (READ BEFORE EDITING)
33
##
4-
## This workflow runs on main pushes in this repository:
4+
## This workflow runs only on manual dispatch against main in this repository:
55
## - The wrapper (checkout, nix, caches, build, Vercel pull + deploy, security
66
## hardening) lives in the rainix `rainix-vercel.yaml` reusable workflow; this
77
## file is a thin caller that selects the production environment and maps
@@ -10,28 +10,16 @@
1010
## workflow, never to the build step.
1111
##
1212
## WARNING: Changing any of the following may break the security model:
13-
## - Triggers (the main push + webapp paths).
13+
## - Triggers (manual dispatch only, main ref only).
1414
## - The reusable workflow ref / inputs.
1515
## If you modify this file, re-validate these invariants (and those in rainix).
1616
name: GitHub Actions Vercel Production Deployment
17+
# Manual so front-end changes ship only once the contracts they call are deployed.
1718
on:
18-
push:
19-
branches:
20-
- main
21-
# Only redeploy prod when something webapp-relevant changed (see
22-
# vercel-preview.yaml for the rationale) — a sol-only main merge shouldn't
23-
# rebuild + redeploy the webapp.
24-
paths:
25-
- 'packages/**'
26-
- 'crates/**'
27-
- 'package.json'
28-
- 'package-lock.json'
29-
- 'flake.nix'
30-
- 'flake.lock'
31-
- 'script/vercel-build.sh'
32-
- '.github/workflows/vercel-prod.yaml'
19+
workflow_dispatch:
3320
jobs:
3421
production:
22+
if: github.ref == 'refs/heads/main'
3523
uses: rainlanguage/rainix/.github/workflows/rainix-vercel.yaml@main
3624
with:
3725
environment: production

0 commit comments

Comments
 (0)