Skip to content

Commit 1d94bdf

Browse files
Use ubuntu-latest container for pypi promotion (#7369)
Using ``pytorch/almalinux-builder:cpu`` does not work with pypi promote action. Hence using default container Co-authored-by: Andrey Talman <[email protected]>
1 parent 8dca5c5 commit 1d94bdf

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/release-pypi.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -57,7 +61,10 @@ jobs:
5761
mkdir dist/
5862
# shellcheck disable=SC2086
5963
aws s3 sync "s3://pytorch-backup/${PACKAGE}-${!version}-pypi-staging/" dist/ --debug
60-
64+
- name: Display structure of downloaded files
65+
run: ls -R dist/
6166
- name: Publish package to PyPI
6267
if: ${{ inputs.dryrun == 'disabled' }}
6368
uses: pypa/gh-action-pypi-publish@release/v1
69+
with:
70+
verbose: true

0 commit comments

Comments
 (0)