Skip to content

Update docs deployment workflow configuration #6

Update docs deployment workflow configuration

Update docs deployment workflow configuration #6

Workflow file for this run

name: Deploy MkDocs
on:
push:
branches:
- main
permissions:
id-token: write
pages: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: main
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Set timezone to UTC
run: echo "TZ=UTC" >> $GITHUB_ENV
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --with=docs --no-interaction --no-ansi
- name: Build docs
run: |
git config --global user.name "mkdocs"
git config --global user.email "mkdocs@puepy.dev"
poetry run mi
- name: Package and upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4