This repository has been archived by the owner on Jul 8, 2024. It is now read-only.
Update index.md #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: Publish Docs | |
on: # yamllint disable-line rule:truthy | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/docs.yaml" | |
- "mkdocs.yaml" | |
- "docs/**" | |
jobs: | |
publish-docs: | |
name: Publish Docs | |
runs-on: ubuntu-20.04 | |
if: github.event.pull_request.head.repo.fork == false | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- uses: actions/setup-python@v5 | |
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" |