From 3ace1556ffdbc63900b725951035694481cbdc3c Mon Sep 17 00:00:00 2001 From: Matthias Wittgen Date: Sat, 4 Jun 2022 12:33:41 -0700 Subject: [PATCH] Add reusable workflow for build_docs --- .github/workflows/build_docs.yaml | 36 +++---------------------------- 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/.github/workflows/build_docs.yaml b/.github/workflows/build_docs.yaml index 5b21b68e..83223792 100644 --- a/.github/workflows/build_docs.yaml +++ b/.github/workflows/build_docs.yaml @@ -1,4 +1,4 @@ -name: docs +name: Build docs on: push: @@ -7,35 +7,5 @@ on: pull_request: jobs: - build_sphinx_docs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - # Need to clone everything for the git tags. - fetch-depth: 0 - - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: 3.8 - cache: "pip" - - - name: Update pip/wheel infrastructure - run: | - python -m pip install --upgrade pip - pip install wheel - - - name: Install dependencies - run: | - pip install -r requirements.txt - - - name: Build and install - run: pip install -v . - - - name: Install documenteer - run: pip install 'documenteer[pipelines]<0.7' - - - name: Build documentation - working-directory: ./doc - run: package-docs build + call-workflow: + uses: lsst/rubin_workflows/.github/workflows/build_docs.yaml@main