Skip to content

Commit 121f71a

Browse files
authored
Upload docs preview (#2426)
Add step to upload docs preview in manager preview at: https://docs-preview.pytorch.org/pytorch/tutorials/2426/index.html
1 parent 47b9ea4 commit 121f71a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build-tutorials.yml

+10
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,16 @@ jobs:
177177
178178
docker exec -t "${container_name}" sh -c ".jenkins/build.sh"
179179
180+
- name: Upload docs preview
181+
uses: seemethere/upload-artifact-s3@v5
182+
if: ${{ github.event_name == 'pull_request' }}
183+
with:
184+
retention-days: 14
185+
s3-bucket: doc-previews
186+
if-no-files-found: error
187+
path: docs
188+
s3-prefix: pytorch/tutorials/${{ github.event.pull_request.number }}
189+
180190
- name: Teardown Linux
181191
uses: pytorch/test-infra/.github/actions/teardown-linux@main
182192
if: always()

0 commit comments

Comments
 (0)