-
Notifications
You must be signed in to change notification settings - Fork 11
55 lines (47 loc) · 1.36 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
48
49
50
51
52
53
54
55
name: deploy
on:
workflow_dispatch:
inputs:
environment:
type: choice
description: env to deploy to
options:
- stage
- testnet
- mainnet
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: ${{ github.event.inputs.environment }}
env:
ENV: ${{ github.event.inputs.environment }}
permissions:
contents: read
id-token: write
deployments: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Import secrets
id: secrets
uses: hashicorp/[email protected]
with:
url: https://vault.fluence.dev
path: jwt/github
role: ci
method: jwt
jwtGithubAudience: "https://github.com/fluencelabs"
jwtTtl: 300
secrets: |
kv/vercel/projects/network-explorer/${{ env.ENV }} id | PROJECT_ID ;
kv/vercel/projects/network-explorer/${{ env.ENV }} team_id | TEAM_ID ;
kv/vercel/tokens/nahsi token | VERCEL_TOKEN ;
- name: Deploy to vercel
uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ steps.secrets.outputs.VERCEL_TOKEN }}
vercel-args: '--prod'
vercel-org-id: ${{ vars.TEAM_ID }}
vercel-project-id: ${{ vars.PROJECT_ID }}
scope: ${{ env.TEAM_ID }}