Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed May 26, 2021
2 parents 3f93f6b + 1df8bf2 commit 95a6635
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,12 @@ jobs:
name: cypress-screenshots
path: cypress/screenshots

# deploy (re-publish) GitHub demo page with a Prod build but only when merging to "master" branch
# and the commit message contains the text "chore(release)"
- name: Deploy to gh-pages
if: github.ref == 'refs/heads/master'
if: |
github.ref == 'refs/heads/master' &&
contains(github.event.head_commit.message, 'chore(release)')
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 95a6635

Please sign in to comment.