Skip to content

Commit

Permalink
Only deploy if not marked as draft.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Jan 24, 2024
1 parent 273e25c commit a2e49e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,15 @@ jobs:
# sleep 10
# yarn test-bslocal -e default,firefox,edge,safari -o reports

- name: Check for draft flag
uses: sergeysova/jq-action@v2
id: draft
with:
cmd: cat package.json | jq -r '.draft // false'

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
if: ${{ steps.draft.outputs.value }} == 'true'
with:
branch: gh-pages
folder: dist
Expand Down

0 comments on commit a2e49e4

Please sign in to comment.