We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e525eb commit 60c5945Copy full SHA for 60c5945
.github/workflows/deploy-staging.yml
@@ -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
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