Rebuild latest docs #5
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 npm published version to rebuild latest docs for, e.g. 1.8.0" | |
required: true | |
permissions: | |
contents: read | |
jobs: | |
release-docs: | |
permissions: | |
id-token: write # trade JWT token for AWS credentials in AWS Docs account | |
contents: read # read from this repo to publish docs | |
secrets: inherit | |
uses: ./.github/workflows/reusable_publish_docs.yml | |
with: | |
version: ${{ inputs.latest_published_version }} | |
alias: latest |