ci(precommit): add gh action validator to pre commit #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |