From 41e72aeff26d2d3500554e377b48521459686b28 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Sat, 24 Feb 2024 21:23:56 +0800 Subject: [PATCH] Fix the GitHub action failures by installing dfx differently, without interacting from the command line. --- .github/workflows/deploy-production.yml | 4 +++- .github/workflows/deploy-staging.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 5fa3752..bf556a6 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -13,7 +13,9 @@ jobs: fetch-depth: 0 - name: Prepare run: | - DFX_VERSION=0.14.3 sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)" + wget --output-document install-dfx.sh "https://raw.githubusercontent.com/dfinity/sdk/dfxvm-install-script/install.sh" + DFX_VERSION=${DFX_VERSION:=0.14.3} DFXVM_INIT_YES=true bash install-dfx.sh + rm install-dfx.sh echo "${{secrets.WEIHAILU}}" > identity.pem chmod 400 identity.pem mkdir -p ~/.config/dfx/identity/default diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 34ae9d3..1765c6c 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -23,7 +23,9 @@ jobs: fetch-depth: 0 - name: Prepare run: | - DFX_VERSION=0.14.3 sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)" + wget --output-document install-dfx.sh "https://raw.githubusercontent.com/dfinity/sdk/dfxvm-install-script/install.sh" + DFX_VERSION=${DFX_VERSION:=0.14.3} DFXVM_INIT_YES=true bash install-dfx.sh + rm install-dfx.sh echo "${{secrets.WEIHAILU}}" > identity.pem chmod 400 identity.pem mkdir -p ~/.config/dfx/identity/default