Skip to content

Background Prep for v0.10.0 work #120

Background Prep for v0.10.0 work

Background Prep for v0.10.0 work #120

Workflow file for this run

name: Publish docs via GitHub Pages
on:
push:
branches:
- main
paths:
- 'README.md'
- 'CHANGELOG.md'
- 'CONTRIBUTING.md'
- 'docs/**'
pull_request:
paths:
- 'README.md'
- 'CHANGELOG.md'
- 'CONTRIBUTING.md'
- 'docs/**'
jobs:
docs:
name: ${{ github.event_name == 'push' && 'Deploy docs' || 'Build docs' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Python 3.12
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install mkdocs mkdocs-material mkdocs-jupyter pandas seaborn folium
- name: Build docs
if: github.event_name == 'pull_request'
run: mkdocs build -f docs/mkdocs.yml
- name: Deploy docs
if: github.event_name == 'push'
run: mkdocs gh-deploy --force -f docs/mkdocs.yml