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()