Deploy Documentation #70
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: Deploy Documentation | |
on: | |
workflow_run: | |
workflows: ["Test pull request"] | |
types: | |
- completed | |
jobs: | |
deploy: | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
name: Deploy documentation | |
runs-on: self-hosted | |
steps: | |
- name: Checkout main | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: 'true' | |
path: '.' | |
- name: Build and deploy | |
run: | | |
git checkout main && git pull | |
make deploy PYTHON=~/build/bin/python3 TEXINPUTS=$PWD/third_party//: PATH=~/.local/texlive/2023/bin/x86_64-linux:$PATH | |
metrics: | |
name: Update metrics | |
needs: deploy | |
uses: ./.github/workflows/metric.yml | |
secrets: inherit |