forked from aragon/gov-app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.35 KB
/
deploy-dev.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
name: Deploy develop
on:
pull_request:
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
strategy:
matrix:
chain:
# - crab
# - darwinia
- koi
steps:
- uses: actions/checkout@v4
- name: Copy env
run: |
cp .env.${{ matrix.chain }} .env.production || true
- name: Render penv
id: render_template
uses: chuhlomin/render-template@v1
with:
template: .env.production
result_path: .env.production
vars: |
NEXT_PUBLIC_ALCHEMY_API_KEY: ${{ secrets.NEXT_PUBLIC_ALCHEMY_API_KEY }}
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID }}
NEXT_PUBLIC_IPFS_API_KEY: ${{ secrets.NEXT_PUBLIC_IPFS_API_KEY }}
NEXT_PUBLIC_ETHERSCAN_API_KEY: ${{ secrets.NEXT_PUBLIC_ETHERSCAN_API_KEY }}
- uses: darwinia-network/devops/actions/smart-vercel@main
name: Deploy to Vercel
with:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
preview_section: ${{ matrix.chain }}
script_run: false
dist_path: .
project_name: aragonette
enable_notify_comment: true
enable_cache: false