summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-11-13 10:35:03 -0500
committerGitHub <noreply@github.com>2022-11-13 10:35:03 -0500
commitf81ad0b7c2ba85eeb99535189a6617af6488ff88 (patch)
tree635644c10f2a8ec40cef84ff1950edaf80ccd0a9
parent336e96a114555994b9e996c705c00d23b735d9d6 (diff)
fix: update latest release version after github release publish (#16603)
-rw-r--r--.github/workflows/ci.yml4
-rw-r--r--.github/workflows/post_publish.yml21
2 files changed, 21 insertions, 4 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 94669bafd..34b6e6289 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -549,8 +549,6 @@ jobs:
startsWith(github.ref, 'refs/tags/')
run: |
gsutil -h "Cache-Control: public, max-age=3600" cp ./target/release/*.zip gs://dl.deno.land/release/${GITHUB_REF#refs/*/}/
- echo ${GITHUB_REF#refs/*/} > release-latest.txt
- gsutil -h "Cache-Control: no-cache" cp release-latest.txt gs://dl.deno.land/release-latest.txt
- name: Upload release to dl.deno.land (windows)
if: |
@@ -564,8 +562,6 @@ jobs:
shell: bash
run: |
gsutil -h "Cache-Control: public, max-age=3600" cp ./target/release/*.zip gs://dl.deno.land/release/${GITHUB_REF#refs/*/}/
- echo ${GITHUB_REF#refs/*/} > release-latest.txt
- gsutil -h "Cache-Control: no-cache" cp release-latest.txt gs://dl.deno.land/release-latest.txt
- name: Create release notes
shell: bash
diff --git a/.github/workflows/post_publish.yml b/.github/workflows/post_publish.yml
new file mode 100644
index 000000000..074d99750
--- /dev/null
+++ b/.github/workflows/post_publish.yml
@@ -0,0 +1,21 @@
+name: post_publish
+
+on: published
+
+jobs:
+ update-dl-version:
+ name: update dl.deno.land version
+ runs-on: ubuntu-20.04
+ if: github.repository == 'denoland/deno'
+ steps:
+ - name: Setup gcloud
+ uses: google-github-actions/setup-gcloud@v0
+ with:
+ project_id: denoland
+ service_account_key: ${{ secrets.GCP_SA_KEY }}
+ export_default_credentials: true
+
+ - 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