Files
sweet/.github/workflows/post_publish.yml
T
dependabot[bot] 12760973e0 chore(deps): bump google-github-actions/setup-gcloud from 1 to 2 (#2170)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-11 22:41:20 +01:00

33 lines
909 B
YAML

name: post_publish
on:
release:
types: [published]
jobs:
update-dl-version:
name: update dl.deno.land version
runs-on: ubuntu-22.04
if: github.repository == 'denoland/fresh'
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Authenticate with Google Cloud
uses: google-github-actions/auth@v2
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@v2
with:
project_id: denoland
- name: Upload version file to dl.deno.land
run: |
cat versions.json | jq -r ".[0]" > release-latest.txt
gsutil -h "Cache-Control: no-cache" cp release-latest.txt gs://dl.deno.land/fresh/release-latest.txt