diff --git a/.github/workflows/yew.yml b/.github/workflows/yew.yml index f1ebedd..5cec1fc 100644 --- a/.github/workflows/yew.yml +++ b/.github/workflows/yew.yml @@ -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