Next we'll configure the build and an external GitHub Pages workflow. It specifies a Node version, checks out main, installs Node dependencies with cacheing. It configures the workflow to run when the branch main is pushed. ![]() The following is a boilerplate GitHub Actions workflow based on examples from GitHub. We'll use a GitHub action to deploy the Next.js project to GitHub Pages. In Settings > Pages > Source, select the gh-pages branch and click "Save".In a browser, go to the repo in GitHub.The convention is to serve the branch gh-pages. When turning it on you can choose which branch to serve. GitHub Pages must be turned on on a per-repo basis. ![]() The final GitHub Actions workflow file and Next.js config are at the end.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |