Deploy Docs Version #4
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: Deploy Docs Version | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
type: choice | |
description: Docs Version | |
options: | |
- '2.0' | |
- '2.1' | |
- '3.0' | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: v${{ inputs.version }} | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- run: pip install poetry | |
- run: poetry install | |
- name: Setup doc deploy | |
run: | | |
git fetch origin gh-pages --depth=1 | |
git config --global user.name Docs deploy | |
git config --global user.email [email protected] | |
- run: poetry run mike deploy --push ${{ inputs.version }} |