-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (31 loc) · 1.1 KB
/
docs-deploy.yml
File metadata and controls
37 lines (31 loc) · 1.1 KB
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
name: Deploy Docs to Internet Computer
on:
workflow_call:
workflow_dispatch:
concurrency:
group: ic-docs-deploy
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
environment: IC mainnet
permissions:
contents: read
steps:
- name: Checkout docs-deployment branch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: docs-deployment
- name: Install icp-cli
run: npm i -g @icp-sdk/icp-cli @icp-sdk/ic-wasm
- name: Import deploy identity
run: |
mkdir -p ~/.local/share/icp-cli/identity/keys
echo "$ICP_IDENTITY" | base64 -d > ~/.local/share/icp-cli/identity/keys/deployer.pem
sed -i 's/\\r\\n/\r\n/g' ~/.local/share/icp-cli/identity/keys/deployer.pem
icp identity import deployer --from-pem ~/.local/share/icp-cli/identity/keys/deployer.pem --storage plaintext
icp identity default deployer
env:
ICP_IDENTITY: ${{ secrets.DFX_IDENTITY_DESIGN_TEAM }}
- name: Deploy to IC mainnet
run: icp deploy -e ic docs