-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (43 loc) · 1.05 KB
/
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
name: deploy
on:
workflow_call:
inputs:
ENV:
description: "env to deploy to"
type: string
required: true
VERCEL_ORG_ID:
description: "Vercel Organization ID"
type: string
required: true
VERCEL_PROJECT_ID:
description: "Vercel Project ID"
type: string
required: true
secrets:
VERCEL_TOKEN:
description: "Vercel Token"
required: true
workflow_dispatch:
inputs:
ENV:
type: choice
description: env to deploy to
options:
- stage
- dar
- kras
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: ${{ inputs.env || github.event.inputs.env }}
steps:
- uses: actions/checkout@v2
- uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-args: '--prod'
vercel-org-id: ${{ vars.VERCEL_ORG_ID}}
vercel-project-id: ${{ vars.VERCEL_PROJECT_ID}}
scope: ${{ vars.VERCEL_ORG_ID}}