🐛 Fix possible leak (W.i.P.) #1452
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate and push docs | |
on: | |
# So we can trigger manually if needed | |
workflow_dispatch: | |
# To confirm any changes to docs build successfully, without deploying them | |
pull_request: | |
# Pushes to branches do the full build + deployment | |
push: | |
branches: | |
- main | |
- "release-*" | |
paths: | |
- "cmd/**" | |
- "docs/**" | |
- "pkg/**" | |
- ".github/workflows/docs-gen-and-push.yaml" | |
permissions: | |
contents: write | |
concurrency: | |
group: ${{ github.workflow }} | |
jobs: | |
generate-and-push: | |
name: Generate and push docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: git fetch origin gh-pages | |
- run: git fetch origin '+refs/tags/v*:refs/tags/v*' --no-tags | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: v1.22.7 | |
cache: true | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
cache: 'pip' | |
- run: make generate-cli-docs generate-api-docs deploy-docs |