-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 910 Bytes
/
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
name: deploy all apps to prod
on:
push:
branches: [master]
jobs:
pre-job:
runs-on: ubuntu-latest
steps:
- name: Cancel redundant workflows
uses: technote-space/auto-cancel-redundant-workflow@v1
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node 16
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Install vercel
run: npm i vercel -g
- name: Deploy landing page
run: ls && vercel --token $VERCEL_TOKEN --prod
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_CLI_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_LANDING_ORG }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_LANDING_PROJ }}