Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Publish documentation #13

Publish documentation

Publish documentation #13

Workflow file for this run

name: Publish documentation
on:
push:
branches:
- main
- gh-pages
tags:
- "**"
jobs:
publish:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
steps:
- name: checkout docs-site
uses: actions/checkout@v4
with:
ref: gh-pages
- uses: actions/checkout@v4
- name: Setup Python
uses: pdm-project/setup-pdm@v3
with:
python-version: ${{ matrix.python-version }}
cache: true
cache-dependency-path: |
pyproject.toml
- name: Install dependencies
run: |
pdm install
- name: Set git credentials
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- run: mike deploy dev --push
if: github.ref == 'refs/heads/main'
- run: mike deploy ${{ github.ref_name }} latest --update-aliases --push
if: startsWith(github.ref, 'refs/tags/')