enriikke / gatsby-gh-pages-action

GitHub Action to build and deploy your Gatsby site to GitHub Pages ❤️🎩
MIT License
295 stars 62 forks source link

Allowing other branch name if used with user/org repo #53

Open artt opened 3 years ago

artt commented 3 years ago

This got me up all night last night :P

I tried to push to my org repo (orgname.github.io) with deploy-branch = main (since that's more politically correct compared to master).

Then I got a Nothing to deploy. message. This goes away if I switched the branch name back to master.

Since GitHub Pages now allow page from either main or master, I think it would be good to allow that with this package as well, or at least make the error more informative.

hisnameisjimmy commented 2 years ago

Was looking at the readme trying to see if this was addressed, I appreciate you posting the question here!