diff --git a/.github/workflows/publish-mirror.yml b/.github/workflows/publish-mirror.yml index c5218da0585a5..6cec5edada725 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