summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2020-11-23 18:06:47 +0100
committerGitHub <noreply@github.com>2020-11-23 18:06:47 +0100
commit46850918e7e6215cc56e163ae4a42c49cd05b446 (patch)
treee64b1d90ea0ef93a1f4aaecbc63c0fb60b487487
parentbc79d556496420441977ca6f5c66be3dc3ded187 (diff)
build: upload canary releases to GCS (#8441)
-rw-r--r--.github/workflows/ci.yml53
1 files changed, 52 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 30a5d7355..4472df7da 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -101,6 +101,32 @@ jobs:
Select-Object -Skip 1 |
ForEach-Object { Move-Item "$_" "$_.disabled" }
+ - name: Setup gcloud (unix)
+ if: |
+ runner.os != 'Windows' &&
+ matrix.kind == 'test_release' &&
+ github.repository == 'denoland/deno' &&
+ github.ref == 'refs/heads/master'
+ uses: google-github-actions/setup-gcloud@master
+ with:
+ project_id: denoland
+ service_account_key: ${{ secrets.GCP_SA_KEY }}
+ export_default_credentials: true
+
+ - name: Setup gcloud (windows)
+ if: |
+ runner.os == 'Windows' &&
+ matrix.kind == 'test_release' &&
+ github.repository == 'denoland/deno' &&
+ github.ref == 'refs/heads/master'
+ uses: google-github-actions/setup-gcloud@master
+ env:
+ CLOUDSDK_PYTHON: ${{env.pythonLocation}}\python.exe
+ with:
+ project_id: denoland
+ service_account_key: ${{ secrets.GCP_SA_KEY }}
+ export_default_credentials: true
+
- name: Log versions
run: |
node -v
@@ -186,7 +212,32 @@ jobs:
run: |
Compress-Archive -CompressionLevel Optimal -Force -Path target/release/deno.exe -DestinationPath target/release/deno-x86_64-pc-windows-msvc.zip
- - name: Release
+ - name: Upload canary (unix)
+ if: |
+ runner.os != 'Windows' &&
+ matrix.kind == 'test_release' &&
+ github.repository == 'denoland/deno' &&
+ github.ref == 'refs/heads/master'
+ 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 (windows)
+ if: |
+ runner.os == 'Windows' &&
+ matrix.kind == 'test_release' &&
+ github.repository == 'denoland/deno' &&
+ github.ref == 'refs/heads/master'
+ env:
+ CLOUDSDK_PYTHON: ${{env.pythonLocation}}\python.exe
+ 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: Release stable
uses: softprops/action-gh-release@v1
if: |
matrix.kind == 'test_release' &&