Skip to content

Merge pull request #23 from RolnickLab/fix-mkdocs #8

Merge pull request #23 from RolnickLab/fix-mkdocs

Merge pull request #23 from RolnickLab/fix-mkdocs #8

name: Publish gh-pages
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
Publish-gh-pages:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python 3.13
uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Install UV
run: |
make uv-install-venv
- name: Cache UV virtualenv and dependencies
uses: actions/cache@v5
with:
path: |
~/.cache/uv
~/.cache/pip
key: uv-${{ runner.os }}-${{ hashFiles('**/uv.lock') }}
restore-keys: |
uv-${{ runner.os }}-
- name: Install dependencies
run: |
make install-dev
make install-docs
- name: Run properdocs deploy
run: |
uv run properdocs gh-deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}