Skip to content

Commit 6386685

Browse files
authored
ci: deploy manually to canary env from main
Instead of using "branch tracking" on the canary Vercel env, this triggers a deploy from GitHub Actions on pushes to the `main` branch in this repo.
1 parent ebcfc01 commit 6386685

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push:
3+
branches: [main]
4+
5+
jobs:
6+
deploy-canary:
7+
if: github.repository == 'npmx-dev/npmx.dev'
8+
name: 🚀 Deploy to canary (main.npmx.dev)
9+
runs-on: ubuntu-24.04-arm
10+
steps:
11+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
12+
with:
13+
fetch-depth: 0
14+
- run: npx vercel deploy --target=canary --token="$VERCEL_TOKEN"
15+
env:
16+
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}

0 commit comments

Comments
 (0)