Pin hugo version and fix date on story #67
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Hugo Site to GitHub Pages | |
on: | |
push: | |
branches: | |
- main # Change this to the branch you want to trigger the pipeline on | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set Up Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.124.0' # You can specify a specific Hugo version here | |
- name: Build Hugo Site | |
run: hugo --minify | |
- name: Add CNAME | |
run: echo 'www.thekitty.zone' > ./public/CNAME | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
deploy_key: ${{ secrets.DEPLOY_KEY }} # You need to set up a deploy key | |
publish_dir: ./public | |
publish_branch: gh-pages # Change this if you're using a different branch for GitHub Pages |