-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (36 loc) · 1.12 KB
/
cd.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
# Continuous Deployment job to deploy the portal to the Internet Computer as an asset canister
name: CD
on:
push:
branches: [master]
jobs:
deploy-ic:
name: "Deploy to IC"
runs-on: ubuntu-latest
concurrency:
group: "website update"
cancel-in-progress: true
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: git submodule update --init
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install DFX
uses: dfinity/setup-dfx@main
with:
dfx-version: "0.22.0"
- name: Dump Identity
run: |
mkdir -p ~/.config/dfx/identity/default
echo "${{ secrets.DFX_IDENTITY }}" | base64 -d > ~/.config/dfx/identity/default/identity.pem
sed -i 's/\\r\\n/\r\n/g' ~/.config/dfx/identity/default/identity.pem
shell: bash
- name: Check Dump
run: cat ~/.config/dfx/identity/default/identity.pem
- name: Install Dependencies
run: npm install
- name: Deploy to Mainnet
run: dfx deploy --network=ic --no-wallet