Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to app #2728

Merged
merged 11 commits into from
Jun 20, 2023
21 changes: 13 additions & 8 deletions .github/workflows/deploy-to-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ concurrency:
cancel-in-progress: true
jobs:
deploy-app:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest-m
timeout-minutes: 60
env:
NNS_DAPP_APP_SUBNET_CANISTER_ID: "xnjld-hqaaa-aaaal-qb56q-cai"
Expand Down Expand Up @@ -103,12 +103,17 @@ jobs:
dfx canister install --mode "${{ inputs.mode || 'upgrade' }}" --yes --network "$DFX_NETWORK" "$CANISTER_NAME" --wasm out/sns_aggregator.wasm
- name: Canister info
run: |
# How to add a github summary: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#example-of-adding-a-job-summary
set -x
for canister in nns-dapp sns_aggregator ; do
echo "========================================"
printf "== % 34s ==\n" "$canister"
set -x
dfx-canister-url --network "$DFX_NETWORK" "$canister"
dfx canister info --network "$DFX_NETWORK" "$canister"
dfx canister metadata --network "$DFX_NETWORK" "$canister" git_commit_id
set +x
{
printf "## %s\n\n" "$canister"
printf "URL: "
dfx-canister-url --network "$DFX_NETWORK" "$canister"
printf "Commit: "
dfx canister metadata --network "$DFX_NETWORK" "$canister" git_commit_id || printf "NONE"
echo
dfx canister info --network "$DFX_NETWORK" "$canister"
echo
} >> $GITHUB_STEP_SUMMARY || true
done