2022-11-13 10:35:03 -05:00
|
|
|
name: post_publish
|
|
|
|
|
2022-11-13 12:05:08 -05:00
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
2022-11-13 10:35:03 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
update-dl-version:
|
|
|
|
name: update dl.deno.land version
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
if: github.repository == 'denoland/deno'
|
|
|
|
steps:
|
2023-01-12 10:19:35 -05:00
|
|
|
- name: Authenticate with Google Cloud
|
|
|
|
uses: google-github-actions/auth@v1
|
|
|
|
with:
|
|
|
|
project_id: denoland
|
|
|
|
credentials_json: ${{ secrets.GCP_SA_KEY }}
|
|
|
|
export_environment_variables: true
|
|
|
|
create_credentials_file: true
|
|
|
|
|
2022-11-13 10:35:03 -05:00
|
|
|
- name: Setup gcloud
|
2023-01-12 10:19:35 -05:00
|
|
|
uses: google-github-actions/setup-gcloud@v1
|
2022-11-13 10:35:03 -05:00
|
|
|
with:
|
|
|
|
project_id: denoland
|
|
|
|
|
|
|
|
- name: Upload version file to dl.deno.land
|
|
|
|
run: |
|
|
|
|
echo ${GITHUB_REF#refs/*/} > release-latest.txt
|
|
|
|
gsutil -h "Cache-Control: no-cache" cp release-latest.txt gs://dl.deno.land/release-latest.txt
|