Skip to content

Publish Documentation to GitHub Pages #613

Publish Documentation to GitHub Pages

Publish Documentation to GitHub Pages #613

name: Publish Documentation to GitHub Pages
on:
push:
branches:
- 'main' # when someone pushes to the 'main' branch
schedule:
- cron: '59 3 * * *' # this triggers deployment every night at 3:59 UTC / 23:59 EST
workflow_dispatch: # this allows us to run it manually
release:
types: [released] # only deploy when we make a new `latest` release
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
cache: 'pip'
- name: Install dependencies
run: pip install -U ".[docs]"
- run: mkdocs gh-deploy --force