Skip to content

Commit 2cf68af

Browse files
authored
fix: change post_publish upload target to S3 (#3745)
1 parent 4ba300b commit 2cf68af

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

.github/workflows/post_publish.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,12 @@ jobs:
1313
- name: Checkout repo
1414
uses: actions/checkout@v6
1515

16-
- name: Authenticate with Google Cloud
17-
uses: google-github-actions/auth@v3
18-
with:
19-
project_id: denoland
20-
credentials_json: ${{ secrets.GCP_SA_KEY }}
21-
export_environment_variables: true
22-
create_credentials_file: true
23-
24-
- name: Setup gcloud
25-
uses: google-github-actions/setup-gcloud@v3
26-
with:
27-
project_id: denoland
28-
2916
- name: Upload version file to dl.deno.land
17+
env:
18+
AWS_ACCESS_KEY_ID: ${{ vars.S3_ACCESS_KEY_ID }}
19+
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY }}
20+
AWS_ENDPOINT_URL_S3: ${{ vars.S3_ENDPOINT }}
21+
AWS_DEFAULT_REGION: ${{ vars.S3_REGION }}
3022
run: |
3123
cat packages/fresh/deno.json | jq -r ".version" > release-latest.txt
32-
gsutil -h "Cache-Control: no-cache" cp release-latest.txt gs://dl.deno.land/fresh/release-latest.txt
24+
aws s3 cp release-latest.txt s3://dl-deno-land/fresh/release-latest.txt --cache-control "no-cache"

0 commit comments

Comments
 (0)