From 2caa84faf753e961d99d7f3e89b381edb854107a Mon Sep 17 00:00:00 2001 From: Philip Meier Date: Tue, 9 May 2023 11:11:08 +0200 Subject: [PATCH] use automatic doc upload instead of seperate job (#7567) --- .github/workflows/docs.yml | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 22ff4ab84b3..f48f8fb0a06 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -14,7 +14,6 @@ jobs: uses: pytorch/test-infra/.github/workflows/linux_job.yml@main with: repository: pytorch/vision - upload-artifact: docs script: | set -euo pipefail @@ -40,29 +39,9 @@ jobs: pip install --progress-bar=off -r requirements.txt echo '::endgroup::' - echo '::group::Build HTML docs' - # The runner does not have sufficient memory to run with as many processes as their are + # The runner does not have sufficient memory to run with as many processes as there are # cores (`-j auto`). Thus, we limit to a single process (`-j 1`) here. sed -i -e 's/-j auto/-j 1/' Makefile make html - echo '::endgroup::' - mv build/html "${RUNNER_ARTIFACT_DIR}" - - upload-preview: - if: github.event_name == 'pull_request' - needs: [build] - runs-on: [self-hosted, linux.2xlarge] - steps: - - uses: actions/download-artifact@v3 - with: - name: docs - - - name: Upload docs preview - uses: seemethere/upload-artifact-s3@v5 - with: - retention-days: 14 - s3-bucket: doc-previews - if-no-files-found: error - path: html - s3-prefix: pytorch/vision/${{ github.event.pull_request.number }} + mv build/html/* "${RUNNER_DOCS_DIR}"