You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm... dunno about "best", 🙂 but there seem to be various ways to do it. I Googled a bit and I think the simplest is to make the deploy job conditional on the branch being master. We can try adding the following to the deploy job:
if: github.ref == 'refs/heads/master'
And add the additional workflow trigger:
pull_request:
branches: [ main ]
GitHub Actions is one of those things that's so flexible that it's really hard to just get a "just tell me what to do!" answer from the docs...
OK, that works, but we should also make the Pages artefact upload conditional on the branch name. Is it possible to set up different environments so that you can visually inspect a PR build to see if it even runs? And are there good automated tests to check if the game starts up?
Maybe it's possible to run a preview build and test it somehow to get confidence that it doesn't just refuse to run... 🤔
The text was updated successfully, but these errors were encountered: