mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
build: publish canary version file in seperate job (#11462)
This commit is contained in:
parent
a2512de95f
commit
e1d3c425c8
1 changed files with 19 additions and 4 deletions
23
.github/workflows/ci.yml
vendored
23
.github/workflows/ci.yml
vendored
|
@ -380,8 +380,6 @@ jobs:
|
||||||
github.ref == 'refs/heads/main'
|
github.ref == 'refs/heads/main'
|
||||||
run: |
|
run: |
|
||||||
gsutil cp ./target/release/*.zip gs://dl.deno.land/canary/$(git rev-parse HEAD)/
|
gsutil cp ./target/release/*.zip gs://dl.deno.land/canary/$(git rev-parse HEAD)/
|
||||||
echo $(git rev-parse HEAD) > canary-latest.txt
|
|
||||||
gsutil cp canary-latest.txt gs://dl.deno.land/canary-latest.txt
|
|
||||||
|
|
||||||
- name: Upload canary to dl.deno.land (windows)
|
- name: Upload canary to dl.deno.land (windows)
|
||||||
if: |
|
if: |
|
||||||
|
@ -395,8 +393,6 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
gsutil cp ./target/release/*.zip gs://dl.deno.land/canary/$(git rev-parse HEAD)/
|
gsutil cp ./target/release/*.zip gs://dl.deno.land/canary/$(git rev-parse HEAD)/
|
||||||
echo $(git rev-parse HEAD) > canary-latest.txt
|
|
||||||
gsutil cp canary-latest.txt gs://dl.deno.land/canary-latest.txt
|
|
||||||
|
|
||||||
- name: Test debug
|
- name: Test debug
|
||||||
if: |
|
if: |
|
||||||
|
@ -575,3 +571,22 @@ jobs:
|
||||||
target/release/deno_src.tar.gz
|
target/release/deno_src.tar.gz
|
||||||
target/release/lib.deno.d.ts
|
target/release/lib.deno.d.ts
|
||||||
draft: true
|
draft: true
|
||||||
|
|
||||||
|
publish-canary:
|
||||||
|
name: publish canary
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
needs: ['build']
|
||||||
|
if: github.repository == 'denoland/deno' &&
|
||||||
|
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
|
||||||
|
steps:
|
||||||
|
- name: Setup gcloud
|
||||||
|
uses: google-github-actions/setup-gcloud@master
|
||||||
|
with:
|
||||||
|
project_id: denoland
|
||||||
|
service_account_key: ${{ secrets.GCP_SA_KEY }}
|
||||||
|
export_default_credentials: true
|
||||||
|
|
||||||
|
- name: Upload canary version file to dl.deno.land
|
||||||
|
run: |
|
||||||
|
echo $(git rev-parse HEAD) > canary-latest.txt
|
||||||
|
gsutil cp canary-latest.txt gs://dl.deno.land/canary-latest.txt
|
||||||
|
|
Loading…
Reference in a new issue