Publish installers to /installers/uv/latest on the mirror (#18725)
This commit is contained in:
committed by
GitHub
parent
3e6c46e377
commit
0c1d0f7c80
@@ -44,3 +44,18 @@ jobs:
|
||||
--cache-control "public, max-age=31536000, immutable" \
|
||||
artifacts/ \
|
||||
s3://${R2_BUCKET}/github/$PROJECT/releases/download/$VERSION/
|
||||
- name: "Upload latest installers to R2"
|
||||
if: ${{ !fromJson(inputs.plan).announcement_is_prerelease }}
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.MIRROR_R2_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.MIRROR_R2_SECRET_ACCESS_KEY }}
|
||||
AWS_ENDPOINT_URL: https://${{ secrets.MIRROR_R2_CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com
|
||||
AWS_DEFAULT_REGION: auto
|
||||
R2_BUCKET: ${{ secrets.MIRROR_R2_BUCKET_NAME }}
|
||||
run: |
|
||||
for installer in uv-installer.sh uv-installer.ps1; do
|
||||
aws s3 cp --output table --color on \
|
||||
--cache-control "public, max-age=300" \
|
||||
"artifacts/${installer}" \
|
||||
"s3://${R2_BUCKET}/installers/uv/latest/${installer}"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user