deps(deps): bump mkdocs-minify-plugin from 0.7.1 to 0.8.0 #11
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: Documentation | |
on: | |
push: | |
paths: | |
- "docs/**" | |
- "**.md" | |
- "mkdocs.yml" | |
- "requirements-docs.txt" | |
branches: | |
- main | |
pull_request: | |
paths: | |
- "docs/**" | |
- "**.md" | |
- "mkdocs.yml" | |
- "requirements-docs.txt" | |
workflow_dispatch: # Allow manual triggers | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: "pip" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements-docs.txt | |
- name: Install git | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y git | |
- name: Configure Git | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Build documentation | |
run: mkdocs build --strict --verbose | |
- name: Deploy to GitHub Pages | |
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
run: | | |
mkdocs gh-deploy --force | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload documentation artifact | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: documentation | |
path: site | |
retention-days: 14 |