mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
fix: update latest release version after github release publish (#16603)
This commit is contained in:
parent
336e96a114
commit
f81ad0b7c2
2 changed files with 21 additions and 4 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -549,8 +549,6 @@ jobs:
|
||||||
startsWith(github.ref, 'refs/tags/')
|
startsWith(github.ref, 'refs/tags/')
|
||||||
run: |
|
run: |
|
||||||
gsutil -h "Cache-Control: public, max-age=3600" cp ./target/release/*.zip gs://dl.deno.land/release/${GITHUB_REF#refs/*/}/
|
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)
|
- name: Upload release to dl.deno.land (windows)
|
||||||
if: |
|
if: |
|
||||||
|
@ -564,8 +562,6 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
gsutil -h "Cache-Control: public, max-age=3600" cp ./target/release/*.zip gs://dl.deno.land/release/${GITHUB_REF#refs/*/}/
|
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
|
- name: Create release notes
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
21
.github/workflows/post_publish.yml
vendored
Normal file
21
.github/workflows/post_publish.yml
vendored
Normal file
|
@ -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
|
Loading…
Reference in a new issue