Skip to content

3.1.11

3.1.11 #17

Workflow file for this run

name: Publish Docs
on:
# Runs whenever there is a release/tag creation
release:
types: [ "published" ]
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
# Checkout the project's code
contents: read
# Allow to deploy to gh-pages
pages: write
# To verify the deployment originates from an appropriate source
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # all history for all branches and tags
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Setup MkDocs
run: .github/scripts/setup-docs-dependencies.sh
- name: Create new docs version
# `_site` is the default path expected by `actions/upload-pages-artifact` to
# find the static assets.
run: mkdocs build --site-dir _site
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4