chore(ci): update workflows

This commit is contained in:
Jan Rundshagen 2024-07-08 10:04:50 +02:00
parent f9f982c144
commit 8d5eb97b1a
No known key found for this signature in database
GPG key ID: D39ECE260D6616C7
7 changed files with 2 additions and 32 deletions

37
.github/workflows/publish-docs.yaml vendored Normal file
View file

@ -0,0 +1,37 @@
name: Publish Docs
on:
workflow_dispatch: { }
workflow_run:
workflows: [ "Release (Production)" ]
branches: [ main ]
types:
- completed
jobs:
publish-docs:
name: Publish Docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
- name: Build tplprev
run: scripts/build-tplprev.sh
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: |
docs-requirements.txt
- name: Install mkdocs
run: |
pip install -r docs-requirements.txt
- name: Generate docs
run: mkdocs gh-deploy --strict