Skip to content

Commit 3926584

Browse files
committed
Consolidate documentation workflow
1 parent 53aa9b5 commit 3926584

File tree

1 file changed

+4
-40
lines changed

1 file changed

+4
-40
lines changed

.github/workflows/docs.yml

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,13 @@
11
name: Build Docs
2-
32
on:
43
pull_request:
54
push:
65
branches: [main]
76
tags:
87
- '*'
98
merge_group:
10-
11-
env:
12-
COMMIT_EMAIL: ben.jeffery.well+adminbot@gmail.com
13-
OWNER: tskit-dev
14-
REPO: tsdate
15-
REQUIREMENTS: docs/requirements.txt
16-
179
jobs:
18-
build-deploy-docs:
19-
name: Docs
20-
runs-on: ubuntu-24.04
21-
steps:
22-
- name: Cancel Previous Runs
23-
uses: styfle/cancel-workflow-action@0.12.1
24-
with:
25-
access_token: ${{ github.token }}
26-
27-
- uses: actions/checkout@v4.2.2
28-
29-
- uses: actions/setup-python@v5.4.0
30-
with:
31-
python-version: "3.10"
32-
cache: 'pip'
33-
34-
- name: Create venv and install deps
35-
run: |
36-
pip install --upgrade pip wheel
37-
pip install -r ${{env.REQUIREMENTS}} --no-binary tsinfer
38-
39-
- name: Build Docs
40-
run: |
41-
make -C docs
42-
43-
- name: Trigger docs site rebuild
44-
if: github.ref == 'refs/heads/main'
45-
run: |
46-
curl -X POST https://api.github.com/repos/tskit-dev/tskit-site/dispatches \
47-
-H 'Accept: application/vnd.github.everest-preview+json' \
48-
-u AdminBot-tskit:${{ secrets.ADMINBOT_TOKEN }} \
49-
--data '{"event_type":"build-docs"}'
10+
Docs:
11+
uses: tskit-dev/.github/.github/workflows/docs-build-template.yml@main
12+
with:
13+
requirements-path: docs/requirements.txt

0 commit comments

Comments
 (0)