From 0c1d0f7c80a621d71df5ed82c2aa562f2d8d70ae Mon Sep 17 00:00:00 2001 From: Zsolt Dollenstein Date: Tue, 31 Mar 2026 15:51:27 +0100 Subject: [PATCH] Publish installers to `/installers/uv/latest` on the mirror (#18725) --- .github/workflows/publish-mirror.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/publish-mirror.yml b/.github/workflows/publish-mirror.yml index c5218da05..6cec5edad 100644 --- a/.github/workflows/publish-mirror.yml +++ b/.github/workflows/publish-mirror.yml @@ -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