As mentioned in the previous post, I use Hugo and Gitlab to host, build and deploy our site.
In this post, I share the code that uses Gitlab’s Continuous Integration feature that allows us to build and deploy the site using code below. Create .gitlab-ci.yml in the root directory of your Hugo site with the code below.
image: publysher/hugo pages: script: - hugo -v artifacts: paths: - public only: - master What does Gitlab CI do?
Continue reading