Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 4 additions & 37 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,12 @@
name: Build Docs

on:
pull_request:
push:
branches: [main]
tags:
- '*'
merge_group:

jobs:
build-deploy-docs:
name: Docs
runs-on: ubuntu-24.04
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/[email protected]

- uses: actions/[email protected]
with:
python-version: "3.10"
cache: 'pip'
cache-dependency-path: requirements/CI-docs.txt

- name: Create venv and install deps
run: |
pip install --upgrade pip wheel
pip install -r requirements/CI-docs.txt

- 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"}'
Docs:
uses: tskit-dev/.github/.github/workflows/docs-build-template.yml@main
with:
requirements-path: requirements/CI-docs.txt
Loading