-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
44 lines (38 loc) · 1.16 KB
/
action.yaml
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
inputs:
SITE_NAME:
required: true
SECRETS_JSON:
required: true
VERCEL_TOKEN:
required: true
VERCEL_ORG_ID:
required: true
VERCEL_PROJECT_ID:
required: true
VERCEL_ARGS:
required: true
SITE_FRONT_VERCEL_DOMAIN:
required: true
runs:
using: "composite"
steps:
- name: checkout
id: checkout
uses: actions/checkout@v2
- name: VercelDeploy
id: VercelDeploy
uses: amondnet/[email protected]
with:
# token github_action_les_tilleuls_coop sur compte de Julien, via https://vercel.com/account/tokens
vercel-token: ${{ inputs.VERCEL_TOKEN }}
# Optional:
#github-token: ${{ inputs.GITHUB_TOKEN }}
#vercel-args: '--prod' #Optional
vercel-args: ${{ inputs.VERCEL_ARGS }}
# org id : https://vercel.com/teams/tilleuls/settings (team id)
vercel-org-id: ${{ inputs.VERCEL_ORG_ID}}
# project id : https://vercel.com/tilleuls/les-tilleuls-website/settings
vercel-project-id: ${{ inputs.VERCEL_PROJECT_ID}}
#working-directory: ./frontend # already in vercel config
scope: ${{ inputs.VERCEL_ORG_ID}}
alias-domains: ${{ inputs.SITE_FRONT_VERCEL_DOMAIN }}