Skip to content

Commit

Permalink
Merge pull request #13 from Carifio24/check-draft
Browse files Browse the repository at this point in the history
Check if draft before deploying
  • Loading branch information
patudom authored Jan 24, 2024
2 parents 95bc3c0 + a2e49e4 commit 407d71e
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 407d71e

Please sign in to comment.