Merge pull request #18 from harsh-quadB/starDustMobile #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |