Kairos icon indicating copy to clipboard operation
Kairos copied to clipboard

Setup basic GitHub pages workflow for website deployment

Open LarsEck opened this issue 2 years ago • 2 comments

LarsEck avatar Sep 16 '22 16:09 LarsEck

Cross-referencing #110 and #115 here. The workflow I've been using is basically that :

  • Create a repo for your website (blabla.github.io)
  • Pull it, create a Hugo project from cmd
  • Add the repo of the theme you wanna use as a submodule
  • Customize it as you like locally, create content
  • Setup a Github workflow that builds the website and pushes it another branch that will be used when one tries to access the website from their browser. This workflow should trigger on push to main
  • Push to main, the website will be automagically deployed.

sebescudie avatar Sep 19 '22 11:09 sebescudie

Very nice! I'm personally tending towards using https://astro.build for all of this (as we already discussed briefly) and the workflow is essentially the same as you described for Hugo. Astro has a nice page in their docs covering deployment to GitHub Pages. They have a predefined action for this which can be found here.

LarsEck avatar Sep 19 '22 12:09 LarsEck