Skip to content

Commit 7a0ff9d

Browse files
committed
Consolidate documentation workflow
1 parent acaf0e4 commit 7a0ff9d

File tree

1 file changed

+6
-53
lines changed

1 file changed

+6
-53
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +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-
BUILD_GSL: true
13-
COMMIT_EMAIL: ben.jeffery.well+adminbot@gmail.com
14-
MAKE_TARGET: cmodule
15-
OWNER: tskit-dev
16-
REPO: msprime
17-
189
jobs:
19-
build-deploy-docs:
20-
name: Docs
21-
runs-on: ubuntu-24.04
22-
steps:
23-
- name: Cancel Previous Runs
24-
uses: styfle/cancel-workflow-action@0.12.1
25-
with:
26-
access_token: ${{ github.token }}
27-
28-
- uses: actions/checkout@v4.2.2
29-
with:
30-
submodules: true
31-
32-
- uses: actions/setup-python@v5.4.0
33-
with:
34-
python-version: "3.12"
35-
cache: "pip"
36-
37-
- name: Create venv and install deps (one by one to avoid conflict errors)
38-
run: |
39-
pip install --upgrade pip wheel
40-
pip install -r requirements/CI-docs/requirements.txt
41-
42-
- name: Install GSL
43-
if: env.BUILD_GSL == 'true'
44-
run: sudo apt-get install -y libgsl0-dev
45-
46-
- name: Build C module
47-
if: env.MAKE_TARGET
48-
run: |
49-
make $MAKE_TARGET
50-
51-
- name: Build Docs
52-
run: |
53-
cd docs
54-
make
55-
56-
- name: Trigger docs site rebuild
57-
if: github.ref == 'refs/heads/main'
58-
run: |
59-
curl -X POST https://api.github.com/repos/tskit-dev/tskit-site/dispatches \
60-
-H 'Accept: application/vnd.github.everest-preview+json' \
61-
-u AdminBot-tskit:${{ secrets.ADMINBOT_TOKEN }} \
62-
--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 libgsl0-dev
15+
make-command: make cmodule

0 commit comments

Comments
 (0)