Skip to content

Merge pull request #1873 from ahgraber/renovate/actions-checkout-4.x #79

Merge pull request #1873 from ahgraber/renovate/actions-checkout-4.x

Merge pull request #1873 from ahgraber/renovate/actions-checkout-4.x #79

Workflow file for this run

---
name: Publish docs via GitHub Pages
on: # yamllint disable-line rule:truthy
workflow_dispatch:
push:
branches: ["main"]
paths:
- ".github/workflows/publish-docs.yaml"
- "mkdocs.yaml"
- "docs/**"
jobs:
publish-docs:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.fork == false
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4
with:
python-version: 3.x
- uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4
with:
python-version: 3.x
- run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: |
pip install \
mkdocs>=1.1 \
mkdocs-macros-plugin >=0.5 \
mkdocs-material >=1.0 \
mkdocs-minify-plugin>=0.3 \
mkdocs-redirects>=1.0
- run: mkdocs gh-deploy --config-file ./mkdocs.yaml --force