Skip to content

Switch to zensical

Switch to zensical #3

Workflow file for this run

name: Documentation
on:
push:
branches:
- master
- main
tags:
- 'v*'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Mike needs full history to manage the gh-pages branch
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Zensical and Mike
run: |
pip install zensical mike
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Deploy Master to Dev
if: github.ref == 'refs/heads/master'
run: mike deploy --push --update-aliases dev
- name: Deploy Tagged Version
if: startsWith(github.ref, 'refs/tags/')
run: |
VERSION=${GITHUB_REF_NAME#v}
mike deploy --push --update-aliases $VERSION latest