Create GH Action for GitHub Pages

This commit is contained in:
Zsolt Zitting
2024-06-04 00:12:44 -07:00
committed by GitHub
parent b227367645
commit f1dde2d5ad
+21
View File
@@ -0,0 +1,21 @@
name: Publish via GitHub Pages
on:
push:
branches:
- master
jobs:
build:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
# Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: mkdocs.yml
EXTRA_PACKAGES: build-base
REQUIREMENTS: requirements.txt