Files
2021-10-25 03:35:33 +11:00

32 lines
929 B
YAML

name: build docs
on:
push:
branches:
- docs
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.7'
architecture: 'x64'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip # install pip
python3 -m pip install mkdocs # install mkdocs
python3 -m pip install mkdocs-material # install material theme
python3 -m pip install -r ./requirements.txt
- name: Build site
run: mkdocs build
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: site