Merge pull request #241 from benjeffery/gene-cli #79
Workflow file for this run
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: Docs | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
tags: | |
- '*' | |
jobs: | |
build-deploy-docs: | |
name: Docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
cache: "pip" | |
- name: Install deps | |
run: | | |
pip install --upgrade pip wheel | |
pip install -r requirements.txt | |
playwright install | |
- name: Build Docs | |
run: | | |
cd docs | |
make | |
- name: Trigger docs site rebuild | |
if: github.ref == 'refs/heads/main' | |
run: | | |
curl -X POST https://api.github.com/repos/tskit-dev/tskit-site/dispatches \ | |
-H 'Accept: application/vnd.github.everest-preview+json' \ | |
-u AdminBot-tskit:${{ secrets.ADMINBOT_TOKEN }} \ | |
--data '{"event_type":"build-docs"}' |