fix: use /authorize in return URLs for authentication (#284)
#334
This file contains hidden or 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
| name: Deploy to Internet Computer | |
| on: | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - 'AGENTS.md' | |
| - 'CLAUDE.md' | |
| - '.claude/**' | |
| - '.beads/**' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ic-deploy | |
| cancel-in-progress: false | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| environment: IC mainnet | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Initialize submodules | |
| run: | | |
| git config --global url."https://github.com/".insteadOf "git@github.com:" | |
| git submodule update --init --depth 1 .sources/examples .sources/motoko | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build | |
| - name: Install icp-cli | |
| run: npm i -g @icp-sdk/icp-cli@0.2.7 @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 frontend |