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