From 40c4d0c422b7603793f44144834cf04f549cbc73 Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Wed, 31 Jan 2024 17:09:32 -0500 Subject: [PATCH 1/2] Use `upload` subcommand for s3pypi 2.0 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index de48f07..180f75a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -107,7 +107,7 @@ jobs: - name: Setup deploy environment run: python3 -m pip install s3pypi - name: Deploy wheels - run: s3pypi ./wheelhouse/* --bucket "$S3_BUCKET" --region "$S3_REGION" --put-root-index --unsafe-s3-website --acl 'public-read' --force + run: s3pypi upload ./wheelhouse/* --bucket "$S3_BUCKET" --region "$S3_REGION" --put-root-index --unsafe-s3-website --acl 'public-read' --force env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} From 70f7ef12c79d336e24b7912a923f834e1019dcbd Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Wed, 31 Jan 2024 17:13:25 -0500 Subject: [PATCH 2/2] Update flags for s3pypi 2.0 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 180f75a..1877054 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -107,7 +107,7 @@ jobs: - name: Setup deploy environment run: python3 -m pip install s3pypi - name: Deploy wheels - run: s3pypi upload ./wheelhouse/* --bucket "$S3_BUCKET" --region "$S3_REGION" --put-root-index --unsafe-s3-website --acl 'public-read' --force + run: s3pypi upload ./wheelhouse/* --bucket "$S3_BUCKET" --region "$S3_REGION" --put-root-index --index.html --s3-put-args 'ACL=public-read' --force env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}