@@ -31,24 +31,28 @@ jobs:
3131 runs-on : ubuntu-latest
3232 timeout-minutes : 60
3333 environment : pytorchbot-env
34- container :
35- image : pytorch/almalinux-builder:cpu
3634 steps :
3735 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3836 - name : Configure aws credentials (pytorch account)
3937 uses : aws-actions/configure-aws-credentials@50ac8dd1e1b10d09dac7b8727528b91bed831ac0 # v3.0.2
4038 with :
4139 role-to-assume : arn:aws:iam::749337293305:role/gha_workflow_stage_wheels
4240 aws-region : us-east-1
41+ - name : Install AWS CLI v2
42+ run : |
43+ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o /tmp/awscliv2.zip
44+ unzip -q /tmp/awscliv2.zip -d /tmp
45+ sudo /tmp/aws/install --update
46+ rm -rf /tmp/aws/ /tmp/awscliv2.zip
47+ - name : Verify AWS CLI installation
48+ run : aws --version
4349 - name : Copy staged binaries
4450 shell : bash
4551 env :
4652 PACKAGE : ${{ inputs.package || 'torchvision' }}
4753 DRY_RUN : ${{ inputs.dryrun || 'enabled' }}
4854 run : |
4955 set -ex
50- # Install requirements
51- pip install awscli==1.32.18
5256
5357 # Init release versions variables
5458 source ./release/release_versions.sh
5761 mkdir dist/
5862 # shellcheck disable=SC2086
5963 aws s3 sync "s3://pytorch-backup/${PACKAGE}-${!version}-pypi-staging/" dist/ --debug
60-
64+
65+ - name : Display structure of downloaded files
66+ run : ls -R dist/
67+
6168 - name : Publish package to PyPI
6269 if : ${{ inputs.dryrun == 'disabled' }}
6370 uses : pypa/gh-action-pypi-publish@release/v1
71+ with :
72+ verbose : true
0 commit comments