Skip to content

Update S3 HTML indices for download.pytorch.org #13885

Update S3 HTML indices for download.pytorch.org

Update S3 HTML indices for download.pytorch.org #13885

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 }}