Skip to content

Any push is deploying my website! #837

Answered by JamesIves
FrightRisk asked this question in Q&A
Discussion options

You must be logged in to vote

If you only want commits on a specific branch to execute the action you need to use the on push event with your main branch. The if statement isn't needed but won't cause the build to fail.

https://docs.github.com/en/actions/reference/events-that-trigger-workflows

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by FrightRisk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants