Browse Source

add workflow to build docs

pull/1261/head
Ivan Schaller 6 months ago
parent
commit
1a3b54788b
1 changed files with 39 additions and 0 deletions
  1. +39
    -0
      .github/workflows/docs.yml

+ 39
- 0
.github/workflows/docs.yml View File

@ -0,0 +1,39 @@
name: build docs
on:
push:
tags:
- "v*.*.*"
pull_request:
branches: [main, master]
workflow_dispatch:
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: install hatch
run: pip install -r requirements.txt
- name: get docs
run: ./script/get-docs
- name: build docs
run: ./script/build-docs
- name: deploy page
uses: peaceiris/actions-gh-pages@v4
if: github.event_name != 'pull_request'
with:
publish_dir: docs/_build/html
github_token: ${{ secrets.GITHUB_TOKEN }}

Loading…
Cancel
Save