Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
benjeffery committed Dec 16, 2024
1 parent 94184a8 commit 2167059
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ on:
tags:
- '*'

env:
COMMIT_EMAIL: [email protected]
MAKE_TARGET: -C python
OWNER: tskit-dev
REPO: tskit
REQUIREMENTS: python/requirements/CI-docs/requirements.txt

jobs:
build-deploy-docs:
name: Docs
Expand All @@ -39,16 +32,24 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ env.CONDA }}/envs
key: conda-${{ runner.os }}--${{ runner.arch }}--${{ hashFiles(env.REQUIREMENTS) }}-${{ env.CACHE_NUMBER }}
key: conda-${{ runner.os }}--${{ runner.arch }}--${{ hashFiles('requirements/CI-docs/requirements.txt') }}-${{ env.CACHE_NUMBER }}
env:
CACHE_NUMBER: 0
id: cache

- name: Update environment
run: |
mamba install -y python=3.12 doxygen pip
pip install -r ${{ env.REQUIREMENTS }}
mamba install -y python=3.12 pip
pip install -r requirements/CI-docs/requirements.txt
if: steps.cache.outputs.cache-hit != 'true'

- name: Build Docs
run: make -C docs

- 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"}'

0 comments on commit 2167059

Please sign in to comment.