Skip to content

docs: publish Farrow 0.7.0 and simplify the first run #13

docs: publish Farrow 0.7.0 and simplify the first run

docs: publish Farrow 0.7.0 and simplify the first run #13

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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: '1.27.1'
- 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