Skip to content

Commit

Permalink
GitHub Pages: Set DEPLOY_GHP in both jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Dec 23, 2023
1 parent 70c3da3 commit a7deffc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a7deffc

Please sign in to comment.