Skip to content

Commit 7b6f418

Browse files
committed
Consolidate documentation workflow
1 parent 217a38a commit 7b6f418

File tree

1 file changed

+6
-48
lines changed

1 file changed

+6
-48
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,15 @@
11
name: Docs
2-
32
on:
43
pull_request:
54
push:
65
branches: [main]
76
tags:
87
- '*'
98
merge_group:
10-
11-
env:
12-
COMMIT_EMAIL: [email protected]
13-
MAKE_TARGET: all
14-
OWNER: tskit-dev
15-
REPO: tsinfer
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/[email protected]
24-
with:
25-
access_token: ${{ github.token }}
26-
27-
- uses: actions/[email protected]
28-
with:
29-
submodules: true
30-
31-
- uses: actions/[email protected]
32-
with:
33-
python-version: "3.11"
34-
cache: "pip"
35-
36-
- name: Install deps (one by one to avoid conflict errors)
37-
run: |
38-
pip install --upgrade pip wheel
39-
pip install -r requirements/CI-docs/requirements.txt
40-
sudo apt-get install -y tabix
41-
42-
- name: Build C module
43-
if: env.MAKE_TARGET
44-
run: |
45-
make $MAKE_TARGET
46-
47-
- name: Build Docs
48-
run: |
49-
cd docs && make dist
50-
51-
- name: Trigger docs site rebuild
52-
if: github.ref == 'refs/heads/main'
53-
run: |
54-
curl -X POST https://api.github.com/repos/tskit-dev/tskit-site/dispatches \
55-
-H 'Accept: application/vnd.github.everest-preview+json' \
56-
-u AdminBot-tskit:${{ secrets.ADMINBOT_TOKEN }} \
57-
--data '{"event_type":"build-docs"}'
10+
Docs:
11+
uses: tskit-dev/.github/.github/workflows/docs-build-template.yml@main
12+
with:
13+
requirements-path: requirements/CI-docs/requirements.txt
14+
additional-setup: sudo apt-get install -y tabix
15+
make-command: make all

0 commit comments

Comments
 (0)