Rebuild latest docs #88
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
name: Rebuild latest docs | |
# PROCESS | |
# | |
# 1. Build User Guide and API docs | |
# 2. Publish to GitHub Pages | |
# 3. Publish to S3 (new home) | |
# USAGE | |
# | |
# Only used for deploying a documentation hotfix to /latest and its associated version w/o a full release. | |
# | |
# Steps: | |
# | |
# 1. Trigger "Rebuild latest docs" workflow manually: https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow | |
# 2. Use the latest version released under Releases e.g. 2.0.0 | |
on: | |
workflow_dispatch: | |
inputs: | |
latest_published_version: | |
description: "Latest PyPi published version to rebuild latest docs for, e.g. 2.16.3" | |
default: "2.16.3" | |
required: true | |
permissions: | |
contents: read | |
jobs: | |
release-docs: | |
permissions: | |
contents: write # push to gh-pages | |
pages: write # deploy gh-pages website | |
id-token: write # trade JWT token for AWS credentials in AWS Docs account | |
secrets: inherit | |
uses: ./.github/workflows/reusable_publish_docs.yml | |
with: | |
version: ${{ inputs.latest_published_version }} | |
alias: latest |