Skip to content

chore: reorganize workflows #1

chore: reorganize workflows

chore: reorganize workflows #1

Workflow file for this run

name: Deploy Documentation
on:
push:
branches:
- main
permissions: {}
jobs:
deploy:
name: Build and deploy documentation
runs-on: ubuntu-latest
permissions:
contents: write
env:
GO_VERSION: stable
HUGO_VERSION: 0.157.0
CGO_ENABLED: 0
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Generate DNS docs
run: make generate
- name: Install Hugo
run: |
wget -O /tmp/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-amd64.deb
sudo dpkg -i /tmp/hugo.deb
- name: Build Documentation
run: make docs-build
# https://github.com/marketplace/actions/github-pages
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: docs/public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}