Skip to content

Commit

Permalink
GitHub: deploy for builds on main branch only
Browse files Browse the repository at this point in the history
  • Loading branch information
heeckhau committed Dec 6, 2023
1 parent 8bd6589 commit 8ceb2d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/yew.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
deploy:
needs: build # Add a dependency to the build job

# For main branch only
if: github.ref == 'refs/heads/main'

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
Expand Down

0 comments on commit 8ceb2d1

Please sign in to comment.