-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (29 loc) · 906 Bytes
/
mainnet-deploy.yml
File metadata and controls
36 lines (29 loc) · 906 Bytes
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
name: Mainnet deploy
on: workflow_dispatch
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
environment:
name: mainnet
url: https://npiey-xiaaa-aaaal-qcx2q-cai.icp0.io
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup NodeJS
uses: ./.github/actions/setup-node
- name: Setup environment files
uses: ./.github/actions/setup-env-files
with:
storyblok-token: ${{ secrets.PRODUCTION_STORYBLOK_TOKEN }}
- name: Setup DFX
uses: ./.github/actions/setup-dfx
- name: Import DFX identity
run: |
echo "${{ secrets.MAINNET_PEM }}" > ./mainnet.pem
dfx identity import --ic --storage-mode plaintext mainnet ./mainnet.pem
dfx identity use mainnet
- name: Deploy to mainnet
run: dfx deploy --ic