Skip to content

Publish docs via GitHub Pages #3

Publish docs via GitHub Pages

Publish docs via GitHub Pages #3

name: Publish docs via GitHub Pages
on:
push:
tags:
- "*"
workflow_dispatch:
env:
POETRY_VERSION: 1.8.4
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.12
- uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ env.POETRY_VERSION }}
- run: poetry lock --no-update && poetry install
- name: Deploy docs
run: mkdocs gh-deploy --remote-branch gh-pages -f mkdocs.yml --verbose
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}