Skip to content

fix(docs): correct binary extraction for Linux and macOS (#219) #5

fix(docs): correct binary extraction for Linux and macOS (#219)

fix(docs): correct binary extraction for Linux and macOS (#219) #5

Workflow file for this run

name: Publish Docs
on:
workflow_dispatch: {}
push:
branches: [main]
paths:
- docs/**
workflow_run:
workflows: ["Release Production"]
branches: [main]
types:
- completed
permissions:
contents: write
actions: read
env:
GO_VERSION: 1.24.x
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8edcb1bdb4e267140fa742c62e395cd74f332709
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Setup Go
uses: actions/setup-go@8e57b58e57be52ac95949151e2777ffda8501267
with:
go-version: ${{ env.GO_VERSION }}
- name: Set executable permissions for script
run: chmod +x ./scripts/generate-service-config-docs.sh
- name: Generate Service Config Docs
run: |
go mod download
go clean -cache # Clear build cache
./scripts/generate-service-config-docs.sh
- name: Setup Python
uses: actions/setup-python@9322b3ca74000aeb2c01eb777b646334015ddd72
with:
python-version: "3.13.6"
cache: "pip"
cache-dependency-path: |
build/mkdocs/docs-requirements.txt
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install mkdocs
run: |
pip install -r build/mkdocs/docs-requirements.txt
- name: Build and Deploy
run: mkdocs gh-deploy --force --verbose --config-file build/mkdocs/mkdocs.yaml