nextjs / deploy-github-pages

Next.js template to deploy to GitHub Pages as a static site.
36 stars 6 forks source link

GitHub Actions #1

Open n1ckoates opened 1 month ago

n1ckoates commented 1 month ago

Hi!

Is there a reason this template doesn't use GitHub Actions to automatically deploy to GH Pages? That wouldn't require a separate gh-pages branch, nor would users have to manually run npm run deploy each time.

Happy to submit a PR to add that if you'd like!

leerob commented 1 month ago

The last time I digged into this the gh-pages branch name was required – that might have changed. Open to a PR if there's a better way of handling this.

AugustinMauroy commented 4 weeks ago

Here an example of how it's can be done. https://github.com/AugustinMauroy/augustinmauroy.github.io/blob/main/.github/workflows/github_pages.yml I'm not 100% sure if the turbo repo is correctly implemented maybe ask Anthony if such a workflow is added to this repo