v0.21.3 #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow builds and deploys documentation on a release. | |
# | |
# Copyright (c) Microsoft Corporation. | |
# SPDX-License-Identifier: BSD-2-Clause-Patent | |
name: Documentation | |
on: | |
release: | |
types: [published] | |
jobs: | |
variables: | |
name: Variables | |
uses: ./.github/workflows/VariableProducer.yml | |
build: | |
name: Build | |
needs: variables | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ fromJson(needs.variables.outputs.python-versions)[0] }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ fromJson(needs.variables.outputs.python-versions)[0] }} | |
cache: 'pip' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install --upgrade -e .[docs] | |
- name: Build Documentation | |
run: | | |
mkdocs build --strict | |
- name: Upload Github Pages Site Artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
name: "github-pages" | |
path: "site/" | |
deploy: | |
name: Deploy | |
needs: [variables, build] | |
permissions: | |
pages: write | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy Github Pages Site | |
uses: actions/[email protected] | |
with: | |
token: ${{ github.token }} | |
artifact_name: "github-pages" |