Create GitHub workflow to build mkdocs and deploy to GitHub pages #1
Workflow file for this run
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 to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
- feature/mkdocs # TODO: Remove this after testing! | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- run: pip install mkdocs mkdocs-material mkdocs-material-extensions mkdocs-minify-plugin mkdocs-glightbox mkdocs-get-deps | |
- run: mkdocs gh-deploy --force --clean --verbose |