compile-docs #268
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: Compile documentation | |
on: | |
push: | |
branches: | |
- main | |
repository_dispatch: | |
types: [compile-docs] | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Generate nav | |
uses: docker://ghcr.io/riverbench/ci-worker:main | |
with: | |
args: ci-worker nav-gen . mkdocs_2.yml | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- uses: actions/cache@v3 | |
with: | |
key: ${{ github.ref }} | |
path: .cache | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Deploy site | |
run: | | |
mv mkdocs_2.yml mkdocs.yml | |
mkdocs gh-deploy --force |