Skip to content

add_docs_GH_actions #16

add_docs_GH_actions

add_docs_GH_actions #16

Workflow file for this run

name: Docs
on:
pull_request:
branches:
- main
paths:
- 'docs/**'
- 'readme.md'
types:
- closed
push:
branches:
- main
paths:
- 'docs/**'
- 'readme.md'
workflow_dispatch:
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/python-poetry-env
- name: Build docs
run: poetry run mkdocs build --clean
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.PAT }}
publish_dir: ./site