fix: change post_publish upload target to S3 (#3745)

This commit is contained in:
Leo Kettmeir
2026-04-28 12:36:19 +02:00
committed by GitHub
parent 4ba300b02d
commit 2cf68af996
+6 -14
View File
@@ -13,20 +13,12 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v6
- name: Authenticate with Google Cloud
uses: google-github-actions/auth@v3
with:
project_id: denoland
credentials_json: ${{ secrets.GCP_SA_KEY }}
export_environment_variables: true
create_credentials_file: true
- name: Setup gcloud
uses: google-github-actions/setup-gcloud@v3
with:
project_id: denoland
- name: Upload version file to dl.deno.land
env:
AWS_ACCESS_KEY_ID: ${{ vars.S3_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}
AWS_ENDPOINT_URL_S3: ${{ vars.S3_ENDPOINT }}
AWS_DEFAULT_REGION: ${{ vars.S3_REGION }}
run: |
cat packages/fresh/deno.json | jq -r ".version" > release-latest.txt
gsutil -h "Cache-Control: no-cache" cp release-latest.txt gs://dl.deno.land/fresh/release-latest.txt
aws s3 cp release-latest.txt s3://dl-deno-land/fresh/release-latest.txt --cache-control "no-cache"