-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (47 loc) · 1.27 KB
/
prod-deploy.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
48
49
50
51
52
53
54
55
56
57
58
name: Production Deploy
# on: pull_request
on:
push:
branches:
- main
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
production_deploy:
runs-on: ubuntu-latest
env:
VERCEL_ORG_ID: ${{ vars.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ vars.VERCEL_PROJECT_ID }}
GTM_TAG: ${{ vars.GTM_TAG }}
SDK_NETWORK: ${{ vars.SDK_NETWORK }}
WC_RELAYER: ${{ vars.WC_RELAYER }}
WC_PROJECT_ID: ${{ vars.WC_PROJECT_ID }}
IS_PROD: true
NFT_DISABLED: true
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install pnpm
run: npm install -g pnpm
- name: Install Vercel CLI
run: npm i -g vercel
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Pull vercel setup
run: vercel pull --yes --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
env:
NITRO_PRESET: vercel
run: vercel build --prod
- name: Deploy Project Artifacts to Vercel
run: >
vercel
deploy
--prod
--prebuilt
--token=${{ secrets.VERCEL_TOKEN }}