doc-update #455
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: Build site | |
on: | |
push: | |
branches: [main, master] | |
repository_dispatch: | |
types: [doc-update] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "true" | |
fetch-depth: 0 | |
- name: Update source/docs/ submodule | |
run: | | |
git config --global user.name "Github Actions" | |
git config --global user.email "[email protected]" | |
git submodule update --remote --recursive | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Build site | |
run: python build.py | |
- uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: deploy | |
folder: build | |