Skip to content

Commit

Permalink
add conditional in github action to deploy on merge to main only
Browse files Browse the repository at this point in the history
  • Loading branch information
blendtwenty committed Feb 12, 2024
1 parent cf03289 commit c7a3a56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:

- name: Publish to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
Expand Down

0 comments on commit c7a3a56

Please sign in to comment.