-
Notifications
You must be signed in to change notification settings - Fork 50
47 lines (40 loc) · 1.12 KB
/
deploy-vercel-prod.yml
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
41
42
43
44
45
46
47
name: Web Build & Vercel Deploy PROD
on:
push:
branches:
- main
paths:
- '.deploy/web/**'
- '.github/workflows/web.prod.yml'
- 'apps/web/**'
- 'package.json'
- 'yarn.lock'
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'yarn'
- name: Install Packages
run: |
yarn install --frozen-lockfile
- name: Build Web
run: |
yarn build:web
- name: Deploy to Vercel
uses: BetaHuhn/deploy-to-vercel-action@v1
with:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} # Required
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Optional
GITHUB_DEPLOYMENT_ENV: Production
PRODUCTION: true
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID}} #Required
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_WEB_PROJECT_ID}} #Required
WORKING_DIRECTORY: ./