Update mkdocs, mkdocs-material and PyYAML. (#98) #116
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: GitHub Pages Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.12 | |
- name: Setup Python | |
run: | | |
python -m venv ./venv --clear | |
source ./venv/bin/activate | |
pip install -r ./requirements.txt | |
- name: Build and Deploy | |
run: | | |
source ./venv/bin/activate | |
./build.sh | |
test -f ./docs/index.html # sanity check | |
- name: Deploy to GH Pages | |
run: | | |
pip install ghp-import | |
ghp-import --push --force --no-history --no-jekyll \ | |
--message="Deployed $(git rev-parse --short HEAD)" \ | |
./docs/ |