Files
sweet/.github/workflows/post_publish.yml
T
Marvin Hagemeister 815b1940e3 chore: restructure repository into packages/ folder (#3197)
We're having a growing number of packages in this repository. This PR
moves them into a `packages/` directory like it's commonly done in other
projects.
2025-08-06 15:52:45 +02:00

33 lines
924 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 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