Skip to content

Commit

Permalink
Add docs to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
benjeffery committed Nov 8, 2023
1 parent ca9e893 commit 26a65ba
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,3 @@ jobs:
python setup.py egg_info
python setup.py bdist_wheel
pip install dist/*.tar.gz
- run:
name: Build docs
command: |
cd docs && make
44 changes: 44 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build Docs

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

jobs:
build-deploy-docs:
name: Docs
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v3

- uses: actions/setup-python@v4
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"}'

0 comments on commit 26a65ba

Please sign in to comment.