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

Don't require a GitHub access token if in "skip publish" mode #70

Closed timrogers closed 2 years ago

timrogers commented 2 years ago

The skip-publish option allows you to build your Gatsby site but not publish it, "effectively performing a test of the build process using the live configuration". This is useful for CI purposes - i.e. checking your site builds, but not actually deploying.

However, at the moment, you have to provide an access-token when in "skip publish" mode, even though this is only used to publish.

This updates the action - including new tests - so that you are not required to specify the access-token option if you've asked to skip publishing.

timrogers commented 2 years ago

@enriikke Thanks for this nice GitHub Action ❇️