From 88afb8221fdc3ff648ed9ca8f4a1c031cb1f256a Mon Sep 17 00:00:00 2001 From: ilbertt Date: Mon, 6 Jan 2025 21:21:24 +0100 Subject: [PATCH] fix: avoid error if .env does not exist --- .github/workflows/mainnet-deploy.yml | 2 ++ scripts/build-canister.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mainnet-deploy.yml b/.github/workflows/mainnet-deploy.yml index 6613165..db9604d 100644 --- a/.github/workflows/mainnet-deploy.yml +++ b/.github/workflows/mainnet-deploy.yml @@ -26,3 +26,5 @@ jobs: - name: Deploy to mainnet run: dfx deploy --ic + env: + TELEGRAM_SECRET_TOKEN: ${{ secrets.TELEGRAM_SECRET_TOKEN }} diff --git a/scripts/build-canister.sh b/scripts/build-canister.sh index 38a80fb..2a1722d 100755 --- a/scripts/build-canister.sh +++ b/scripts/build-canister.sh @@ -1,9 +1,9 @@ #!/bin/bash -set -e - source .env +set -e + echo -e "\nBuilding canister..." TELEGRAM_SECRET_TOKEN=$TELEGRAM_SECRET_TOKEN \