Skip to content

build(deps): bump github/codeql-action from 4.35.2 to 4.35.3 in the g… #628

build(deps): bump github/codeql-action from 4.35.2 to 4.35.3 in the g…

build(deps): bump github/codeql-action from 4.35.2 to 4.35.3 in the g… #628

name: Deploy Documentation
on:
push:
branches:
- main
jobs:
doc:
name: Build and deploy documentation
runs-on: ubuntu-latest
permissions:
contents: write
env:
# https://github.com/actions/setup-go#supported-version-syntax
# ex:
# - 1.18beta1 -> 1.18.0-beta.1
# - 1.18rc1 -> 1.18.0-rc.1
GO_VERSION: '1.26'
HUGO_VERSION: 0.161.1
CGO_ENABLED: 0
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: ${{ env.GO_VERSION }}
- run: go mod download
- name: Setup Hugo
run: |
wget -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: Build Documentation
run: make docs_build
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@1d6ee9b181a81033a16bd707a1401afa978daab4 # v5.0.0
with:
target_branch: gh-pages
build_dir: docs/public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}