diff options
| author | Luca Casonato <hello@lcas.dev> | 2021-07-21 00:10:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-21 00:10:56 +0200 |
| commit | e1d3c425c885fdd0a5c29788751d8d33c8a8f099 (patch) | |
| tree | 27e85a2d3883203832bd8b199a2a2d5bdd69d17f | |
| parent | a2512de95f2e03008e631a7b19405317d8c361b8 (diff) | |
build: publish canary version file in seperate job (#11462)
| -rw-r--r-- | .github/workflows/ci.yml | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 101105272..79d41d99e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -380,8 +380,6 @@ jobs: github.ref == 'refs/heads/main' run: | 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) if: | @@ -395,8 +393,6 @@ jobs: shell: bash run: | 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 if: | @@ -575,3 +571,22 @@ jobs: target/release/deno_src.tar.gz target/release/lib.deno.d.ts 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 |
