Skip to content

ci(precommit): add gh action validator to pre commit #62

ci(precommit): add gh action validator to pre commit

ci(precommit): add gh action validator to pre commit #62

name: "Deploy Documentation"
env:
PYTHON_VERSION: "3.12"
on:
push:
branches:
- main
paths:
- ".github/workflows/documentation.ya?ml"
- "mkdocs.ya?ml"
- "poetry.lock"
- "pyproject.toml"
- "docs/**"
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Poetry
run: pip install poetry
- name: Install Dependencies
run: poetry install --with=docs
- name: Deploy website
run: poetry run mkdocs gh-deploy --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}