Skip to content

docs: describe generated dependency licenses #1

docs: describe generated dependency licenses

docs: describe generated dependency licenses #1

Workflow file for this run

name: Build and deploy documentation
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
defaults:
run:
shell: bash
jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.164.0
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: '1.27.0'
- name: Setup Hugo Extended
run: |
wget -q -O "${{ runner.temp }}/hugo.deb" "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb"
sudo dpkg -i "${{ runner.temp }}/hugo.deb"
- name: Resolve Hugo modules
run: go mod download
- name: Configure GitHub Pages
id: pages
uses: actions/configure-pages@v5
- name: Build and validate
env:
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo --gc --minify --cleanDestinationDir --printPathWarnings --printI18nWarnings --panicOnWarning --baseURL "${{ steps.pages.outputs.base_url }}/"
python3 bin/check_internal_links.py public
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./public
deploy:
if: github.event_name != 'pull_request'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4