Update S3 HTML indices for download.pytorch.org #26728
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update S3 HTML indices for download.pytorch.org | |
on: | |
schedule: | |
# Update the indices every 30 minutes | |
- cron: "*/30 * * * *" | |
# Have the ability to trigger this job manually using the API as well | |
workflow_dispatch: | |
jobs: | |
update-html: | |
runs-on: ubuntu-22.04 | |
if: ${{ github.repository == 'pytorch/pytorch' }} | |
strategy: | |
matrix: | |
prefix: ["whl", "whl/test", "whl/nightly", "whl/lts/1.8"] | |
steps: | |
- name: Run updater image | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_S3_UPDATE_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_UPDATE_SECRET_ACCESS_KEY }} | |
uses: docker://pytorch/manage_s3_html | |
with: | |
args: --generate-pep503 ${{ matrix.prefix }} |