Skip to content

Commit

Permalink
Add option to disable deployment for testing jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
raar1 committed May 17, 2024
1 parent 85b0b29 commit 92ff546
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ on:
base_url:
required: false
type: string

deploy_to_ghpages:
description: 'Deploys to gh-pages branch if set to true (default). Set this to false for testing builds/generation.'
required: false
default: true
type: boolean
jobs:
build_and_deploy:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -74,6 +78,7 @@ jobs:
npx nuxi generate
- name: Deploy
if: ${{ inputs.deploy_to_ghpages }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 92ff546

Please sign in to comment.