Skip to content

Commit 29d288e

Browse files
authored
Publish installers to /installers/ty/latest on the mirror (#3202)
1 parent 5c9e342 commit 29d288e

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/publish-mirror.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,18 @@ jobs:
4343
--cache-control "public, max-age=31536000, immutable" \
4444
artifacts/ \
4545
"s3://${R2_BUCKET}/github/${PROJECT}/releases/download/${VERSION}/"
46+
- name: "Upload latest installers to R2"
47+
if: ${{ !fromJson(inputs.plan).announcement_is_prerelease }}
48+
env:
49+
AWS_ACCESS_KEY_ID: ${{ secrets.MIRROR_R2_ACCESS_KEY_ID }}
50+
AWS_SECRET_ACCESS_KEY: ${{ secrets.MIRROR_R2_SECRET_ACCESS_KEY }}
51+
AWS_ENDPOINT_URL: https://${{ secrets.MIRROR_R2_CLOUDFLARE_ACCOUNT_ID }}.r2.cloudflarestorage.com
52+
AWS_DEFAULT_REGION: auto
53+
R2_BUCKET: ${{ secrets.MIRROR_R2_BUCKET_NAME }}
54+
run: |
55+
for installer in ty-installer.sh ty-installer.ps1; do
56+
aws s3 cp --output table --color on \
57+
--cache-control "public, max-age=300" \
58+
"artifacts/${installer}" \
59+
"s3://${R2_BUCKET}/installers/ty/latest/${installer}"
60+
done

0 commit comments

Comments
 (0)