Skip to content

fix(ci): concurrency guard, self-hosted->ubuntu for docs, pin hugo, s… #108

fix(ci): concurrency guard, self-hosted->ubuntu for docs, pin hugo, s…

fix(ci): concurrency guard, self-hosted->ubuntu for docs, pin hugo, s… #108

Workflow file for this run

name: Deploy Docs
on:
push:
branches: [main]
paths:
- "website/**"
- ".github/workflows/docs.yml"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
submodules: true
fetch-depth: 0
- uses: peaceiris/actions-hugo@v3
with:
hugo-version: "0.163.3"
extended: true
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Build Hugo site
working-directory: website
run: |
hugo mod get
hugo --minify
- uses: actions/upload-pages-artifact@v3
with:
path: website/public
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5