Consolidate the mkdocs to GitHub Pages publish workflow

* Use a shared GitHub Workflow to build the mkdocs site and
publish to GitHub Pages (when the release-docs branch is updated)
This commit is contained in:
Dalton Hubble 2023-05-26 10:22:21 -07:00
parent ecc9a73df4
commit 9e63f1247a
1 changed files with 6 additions and 24 deletions

View File

@ -3,28 +3,10 @@ on:
push: push:
branches: branches:
- release-docs - release-docs
permissions:
contents: write
jobs: jobs:
publish: mkdocs:
name: publish name: mkdocs
runs-on: ubuntu-latest uses: poseidon/matchbox/.github/workflows/mkdocs-pages.yaml@main
steps: # Add content write for GitHub Pages
# Checkout repo to GitHub Actions runner permissions:
- name: Checkout contents: write
uses: actions/checkout@v3
# Install Python
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
# Install PyPI packages
- name: Dependencies
run: pip install -r requirements.txt
# Push to GitHub Pages
- name: Push Docs
run: |
mkdocs gh-deploy --force