Skip to content

Commit 60c5945

Browse files
Pedro DiogoPedro Diogo
authored andcommitted
feat: add GitHub Actions workflow for staging deployments
1 parent 9e525eb commit 60c5945

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy Staging to Vercel
2+
3+
on:
4+
push:
5+
branches:
6+
- staging
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '18'
19+
cache: 'npm'
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Build project
25+
run: npm run build
26+
27+
- name: Deploy to Vercel
28+
uses: amondnet/vercel-action@v25
29+
with:
30+
vercel-token: ${{ secrets.VERCEL_TOKEN }}
31+
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
32+
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
33+
working-directory: ./
34+
scope: ${{ secrets.VERCEL_ORG_ID }}

0 commit comments

Comments
 (0)