File tree 4 files changed +21
-35
lines changed
4 files changed +21
-35
lines changed Original file line number Diff line number Diff line change 17
17
default : true
18
18
type : boolean
19
19
secrets :
20
- PYTORCH_BINARY_AWS_ACCESS_KEY_ID :
21
- required : true
22
- PYTORCH_BINARY_AWS_SECRET_ACCESS_KEY :
23
- required : true
24
20
PYPI_TOKEN :
25
21
required : false
26
22
CONDA_PYTORCHBOT_TOKEN :
30
26
CONDA_NIGHTLY_PYTORCHBOT_TOKEN :
31
27
required : false
32
28
29
+ permissions :
30
+ id-token : write
31
+ contents : read
32
+
33
33
jobs :
34
34
get_release_type :
35
35
runs-on : ubuntu-latest
@@ -158,6 +158,19 @@ jobs:
158
158
outputs :
159
159
upload : ${{ steps.trigger_upload.outputs.value }}
160
160
steps :
161
+ - name : Configure aws credentials (pytorch account)
162
+ if : ${{ needs.get_release_type.outputs.type == 'nightly' }}
163
+ uses : aws-actions/configure-aws-credentials@v3
164
+ with :
165
+ role-to-assume : arn:aws:iam::749337293305:role/gha_workflow_nightly_build_wheels
166
+ aws-region : us-east-1
167
+
168
+ - name : Configure aws credentials (pytorch account)
169
+ if : ${{ needs.get_release_type.outputs.type == 'test' }}
170
+ uses : aws-actions/configure-aws-credentials@v3
171
+ with :
172
+ role-to-assume : arn:aws:iam::749337293305:role/gha_workflow_test_build_wheels
173
+ aws-region : us-east-1
161
174
- name : Download Artifacts from Github
162
175
continue-on-error : true
163
176
uses : actions/download-artifact@v3
@@ -177,9 +190,6 @@ jobs:
177
190
run : ls -lh torchdata*.whl
178
191
- name : Upload Wheels to S3 Storage
179
192
if : steps.trigger_upload.outputs.value == 'true'
180
- env :
181
- AWS_ACCESS_KEY_ID : ${{ secrets.PYTORCH_BINARY_AWS_ACCESS_KEY_ID }}
182
- AWS_SECRET_ACCESS_KEY : ${{ secrets.PYTORCH_BINARY_AWS_SECRET_ACCESS_KEY }}
183
193
run : |
184
194
if [[ ${{ inputs.branch }} == 'main' ]]; then
185
195
S3_PATH=s3://pytorch/whl/nightly/
Original file line number Diff line number Diff line change 17
17
pytorch_version : " "
18
18
do-upload : false
19
19
secrets :
20
- PYTORCH_BINARY_AWS_ACCESS_KEY_ID : " "
21
- PYTORCH_BINARY_AWS_SECRET_ACCESS_KEY : " "
22
20
CONDA_TEST_PYTORCHBOT_TOKEN : " "
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22
22
# env:
23
23
# RELEASE_BRANCH: ""
24
24
25
+ permissions :
26
+ id-token : write
27
+ contents : read
28
+
25
29
jobs :
26
30
build_test_upload :
27
31
if : github.repository == 'pytorch/data' && startsWith(github.ref_name, 'release/')
31
35
pre_dev_release : true
32
36
pytorch_version : " 2.4.0"
33
37
secrets :
34
- PYTORCH_BINARY_AWS_ACCESS_KEY_ID : ${{ secrets.PYTORCH_BINARY_AWS_ACCESS_KEY_ID }}
35
- PYTORCH_BINARY_AWS_SECRET_ACCESS_KEY : ${{ secrets.PYTORCH_BINARY_AWS_SECRET_ACCESS_KEY }}
36
38
CONDA_TEST_PYTORCHBOT_TOKEN : ${{ secrets.CONDA_TEST_PYTORCHBOT_TOKEN }}
You can’t perform that action at this time.
0 commit comments