From cb8d414b4e9a552ada954b5a34cace9612d67ea0 Mon Sep 17 00:00:00 2001 From: Pierre Bertet Date: Thu, 11 Apr 2024 00:47:33 +0100 Subject: [PATCH] Only download the context when contracts are deployed --- .github/workflows/deploy-testnet.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-testnet.yml b/.github/workflows/deploy-testnet.yml index 61ef62a40..20c66a61c 100644 --- a/.github/workflows/deploy-testnet.yml +++ b/.github/workflows/deploy-testnet.yml @@ -2,6 +2,7 @@ name: Deploy the contracts + app env: VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + DEPLOY_CONTRACTS: 'no' on: push: branches: [deploy-contracts-and-app] @@ -20,8 +21,8 @@ concurrency: jobs: deploy-contracts: - if: false name: Deploy contracts to the Liquity v2 Testnet + if: ${{ env.DEPLOY_CONTRACTS != 'no' }} runs-on: ubuntu-latest steps: - name: Git checkout @@ -78,6 +79,7 @@ jobs: run: pnpm install --global vercel@canary - name: Download deployment context + if: ${{ env.DEPLOY_CONTRACTS != 'no' }} uses: actions/download-artifact@v4 with: name: deployment-context