From e9467904e39dd8ccf9b74c75d85747a3f6c99569 Mon Sep 17 00:00:00 2001 From: Catherine Lee Date: Mon, 5 Jun 2023 13:38:44 -0700 Subject: [PATCH] update --- .github/workflows/build-tutorials.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build-tutorials.yml b/.github/workflows/build-tutorials.yml index 222de26b9bb..c242a1897c6 100644 --- a/.github/workflows/build-tutorials.yml +++ b/.github/workflows/build-tutorials.yml @@ -177,6 +177,16 @@ jobs: docker exec -t "${container_name}" sh -c ".jenkins/build.sh" + - name: Upload docs preview + uses: seemethere/upload-artifact-s3@v5 + if: ${{ github.event_name == 'pull_request' }} + with: + retention-days: 14 + s3-bucket: doc-previews + if-no-files-found: error + path: docs + s3-prefix: pytorch/tutorials/${{ github.event.pull_request.number }} + - name: Teardown Linux uses: pytorch/test-infra/.github/actions/teardown-linux@main if: always()