Skip to content

hugo: correct go.mod version+format #2

hugo: correct go.mod version+format

hugo: correct go.mod version+format #2

Workflow file for this run

---
name: Deploy Hugo site to GH Pages
on:
# Only deploy when it is accepted for production
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: latest
# We use the extended version just to be on the safe side.
# It is recommended anyway.
extended: true
- name: Cache Hugo modules
uses: actions/cache@v3
with:
path: /home/runner/.cache/hugo_cache
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-hugomod-
- name: Build website
run: hugo
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3