(CI/CD): Deploy (SSG) to GitHub Pages using GitHub Actions

In this video, we are going to deploy a (SSG) application to GitHub Pages using GitHub Actions (CI/CD). Make sure you can run “npm run build && npm run export“ in your application. Only Static sites/applications can be deployed to GitHub Pages. If you need a server running (because you use getInitialProps, getServerSideProps or fallback:true) you may consider other options like Vercel, Azure, AWS, etc... During the video, we will see how to use environment variables in GitHub actions as well. ---- Timeline: 00:00 Introduction 01:25 GitHub Actions first steps 06:21 First GitHub Actions job completed 06:54 Setup GitHub Pages in repository settings 08:10 See the results of the first deployment 08:57 assetPrefix explanation 09:52 basePath explanation 10:38 Implement ... #BrunoAntunesPT # #Nextjs # #nextjs_deployment #next_js_deployment #next_js_github_pages # #nextjs_ssg #next_js_ssg_deployment 20200828 yRz8D_oJMWQ
Back to Top