File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments