Skip to content

chore(examples): migrate all 7 examples to icp-cli and @dfinity/vetkeys #341

chore(examples): migrate all 7 examples to icp-cli and @dfinity/vetkeys

chore(examples): migrate all 7 examples to icp-cli and @dfinity/vetkeys #341

name: examples-encrypted-notes-dapp
permissions: {}
on:
push:
branches:
- main
pull_request:
paths:
- examples/encrypted_notes_dapp_vetkd/**
- .github/workflows/provision-darwin.sh
- .github/workflows/provision-linux.sh
- .github/workflows/examples-encrypted-notes-dapp.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
examples-encrypted-notes-dapp-rust-darwin:
runs-on: macos-15
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22'
- name: Provision Darwin
run: |
bash .github/workflows/provision-darwin.sh
- name: Install workspace dependencies
run: npm install
- name: Deploy Encrypted Notes Dapp VetKD Darwin
env:
ICP_CLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -eExuo pipefail
cd examples/encrypted_notes_dapp_vetkd/rust
icp network start -d && icp deploy
examples-encrypted-notes-dapp-rust-linux:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22'
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Install workspace dependencies
run: npm install
- name: Deploy Encrypted Notes Dapp VetKD Linux
env:
ICP_CLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -eExuo pipefail
cd examples/encrypted_notes_dapp_vetkd/rust
icp network start -d && icp deploy
examples-encrypted-notes-dapp-motoko-darwin:
runs-on: macos-15
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22'
- name: Provision Darwin
run: |
bash .github/workflows/provision-darwin.sh
- name: Install workspace dependencies
run: npm install
- name: Deploy Encrypted Notes Dapp VetKD Darwin
env:
ICP_CLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -eExuo pipefail
cd examples/encrypted_notes_dapp_vetkd/motoko
icp network start -d && icp deploy
examples-encrypted-notes-dapp-motoko-linux:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '22'
- name: Provision Linux
run: bash .github/workflows/provision-linux.sh
- name: Install workspace dependencies
run: npm install
- name: Deploy Encrypted Notes Dapp VetKD Linux
env:
ICP_CLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -eExuo pipefail
cd examples/encrypted_notes_dapp_vetkd/motoko
icp network start -d && icp deploy