Skip to content

jf/opzomeren

jf/opzomeren #29

Workflow file for this run

name: docs
on:
push:
branches: [master]
paths:
- 'docs/**'
- 'mkdocs.yml'
- '.github/workflows/docs.yml'
pull_request:
branches: [master]
paths:
- 'docs/**'
- 'mkdocs.yml'
- '.github/workflows/docs.yml'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
pip install -e ".[docs]"
- name: Build docs
run: mkdocs build --strict
- name: Configure git for mike
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Deploy docs with mike
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
git fetch origin gh-pages --depth=1
mike deploy --push --update-aliases latest stable
mike set-default --push latest