Skip to content

Merge pull request #42 from simonsobs/update_versions #15

Merge pull request #42 from simonsobs/update_versions

Merge pull request #42 from simonsobs/update_versions #15

Workflow file for this run

name: Deploy Documentation
on:
workflow_dispatch:
push:
tags:
- '*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update_docs:
name: Build and Deploy Documentation
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Create Cache ID
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Setup Cache
uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install Dependencies
run: |
pip install mkdocs mkdocstrings mkdocstrings-python mkdocs-material
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Deploy Docs
run: |
cd docs
mkdocs gh-deploy --force