Skip to content

docs: publish Farrow 0.4.0 #8

docs: publish Farrow 0.4.0

docs: publish Farrow 0.4.0 #8

Workflow file for this run

name: Build documentation
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-24.04
env:
HUGO_VERSION: 0.165.0
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: '1.27.0'
- name: Setup Hugo Extended
run: |
set -euo pipefail
curl -fsSLo "${{ runner.temp }}/hugo.deb" "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb"
printf '%s %s\n' \
b4fab4477743c0f1fcfe85072a71156d78f97e4724f0d8bb3b1b1ff2f53ce3ac \
"${{ runner.temp }}/hugo.deb" | sha256sum -c -
sudo dpkg -i "${{ runner.temp }}/hugo.deb"
- name: Resolve Hugo modules
run: go mod download
- name: Build and validate
env:
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo --gc --minify --cleanDestinationDir --printPathWarnings --printI18nWarnings --panicOnWarning
python3 bin/check_internal_links.py public