Skip to content

Commit

Permalink
Fix deploy github-pages condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dorssel committed Dec 30, 2024
1 parent 07642c0 commit 574d849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}

deploy:
if: github.event_name != 'pull_request'
if: ${{ github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged) }}
needs: build-dotnet

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
Expand Down

0 comments on commit 574d849

Please sign in to comment.