-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1.01 KB
/
cd.yml
File metadata and controls
40 lines (35 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: deploy to production
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout Pull Request Code
- name: Checkout Pull Request Code
uses: actions/checkout@v3
with:
ref: main
# Step 2: Install Node.js
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
# Step 3: Install Dependencies
# - name: Install Dependencies
# run: |
# npm install --legacy-peer-deps
# # Step 4: Build App
# - name: Build App
# run: |
# npm run build
# Step 5: Deploy to Production
- name: Deploy to Vercel
uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-org-id: ${{ secrets.ORG_ID}}
vercel-project-id: ${{ secrets.PROJECT_ID }}
vercel-args: "--prod"
working-directory: ./