From a7deffc0d50ec08aa70d044315aa57711b083d71 Mon Sep 17 00:00:00 2001 From: Kai Salmen Date: Sat, 23 Dec 2023 22:02:56 +0100 Subject: [PATCH] GitHub Pages: Set DEPLOY_GHP in both jobs --- .github/workflows/actions.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index d7930e0..7f6a7ad 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -33,7 +33,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: '18' - - name: Setup + - name: Check Environment env: DEPLOY_GHP: ${{ false || github.event.inputs.ghp == 'true' || github.ref_name == 'main' }} run: | @@ -70,6 +70,11 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: + - name: Check Environment + env: + DEPLOY_GHP: ${{ false || github.event.inputs.ghp == 'true' || github.ref_name == 'main' }} + run: | + echo "DEPLOY_GHP=${DEPLOY_GHP}" >> $GITHUB_ENV - name: Deploy to GitHub Pages if: ${{ env.DEPLOY_GHP == 'true' }} id: deployment