-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (42 loc) · 1.27 KB
/
cd.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
45
46
47
48
name: CD
on:
push:
branches: [ "master" ]
jobs:
deploy:
name: deploy-dev
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Nostric
run: |
npm install
continue-on-error: false
- name: Install Mops
run: |
npm install -g ic-mops
continue-on-error: false
- uses: dfinity/setup-dfx@main
with:
dfx-version: auto
env:
DFX_IDENTITY_PEM: ${{ secrets.DFX_IDENTITY_PEM }}
- run: |
dfx start --clean --background
continue-on-error: false
- name: Dev environment deployment
run: |
cp canister_ids-dev.json canister_ids.json
echo "${{ secrets.DFX_IDENTITY_PEM }}" > /home/runner/identity.pem
dfx identity import --storage-mode=plaintext --force action /home/runner/identity.pem
dfx identity use action
dfx identity set-wallet ${{ secrets.WALLET_CANISTER_ID }} --network ic
dfx wallet balance --network ic
dfx canister create internet_identity
dfx build internet_identity
dfx deploy --network ic --yes
continue-on-error: false