-
Notifications
You must be signed in to change notification settings - Fork 80
45 lines (40 loc) · 1.19 KB
/
update-s3-html.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Update S3 HTML indices for download.pytorch.org
on:
schedule:
# Update the indices every 30 minutes
- cron: "*/30 * * * *"
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
update:
runs-on: ubuntu-22.04
environment: pytorchbot-env
strategy:
matrix:
prefix: ["whl", "whl/test", "whl/nightly", "libtorch", "libtorch/nightly"]
fail-fast: False
container:
image: continuumio/miniconda3:23.10.0-1
steps:
- name: configure aws credentials
id: aws_creds
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: arn:aws:iam::749337293305:role/gha_workflow_s3_update
aws-region: us-east-1
- name: Checkout repository test-infra
uses: actions/checkout@v4
with:
repository: pytorch/test-infra
ref: ${{ github.ref }}
- name: Update s3 html index
shell: bash
run: |
set -ex
# Output info on default conda env
conda info
# Install requirements
pip install -r s3_management/requirements.txt
python s3_management/manage.py ${{ matrix.prefix }}