Skip to content

v0.22.3

v0.22.3 #42

Workflow file for this run

# 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"