diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 232e123..c50d2f5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,45 +1,12 @@ name: Build Docs - on: pull_request: push: branches: [main] tags: - '*' - merge_group: - jobs: - build-deploy-docs: - name: Docs - runs-on: ubuntu-24.04 - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.12.1 - with: - access_token: ${{ github.token }} - - - uses: actions/checkout@v4.2.2 - - - uses: actions/setup-python@v5.4.0 - 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"}' \ No newline at end of file + Docs: + uses: tskit-dev/.github/.github/workflows/docs-build-template.yml@main + with: + requirements-path: requirements/CI-docs.txt \ No newline at end of file