diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-09-17 17:53:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-17 16:53:32 +0000 |
| commit | 915b73571c40601b7f79fa4ee0f3035982e23b7f (patch) | |
| tree | 516521f91b2109e7079a9b0416fdf27c32b5a954 /.github/workflows/ci.yml | |
| parent | 039e15fc84465fd2595d4fc74bf817a44ba371ec (diff) | |
ci: fix releasing canary (#25689)
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9f7bff07..7b0a0d744 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -486,8 +486,8 @@ jobs: github.ref == 'refs/heads/main') run: |- gsutil -h "Cache-Control: public, max-age=3600" cp ./target/release/*.zip gs://dl.deno.land/canary/$(git rev-parse HEAD)/ - lastest_canary_hash=$(gsutil cat gs://dl.deno.land/canary-$(rustc -vV | sed -n "s|host: ||p")-latest.txt) - git cat-file -e $(lastest_canary_hash) + latest_canary_hash=$(gsutil cat gs://dl.deno.land/canary-$(rustc -vV | sed -n "s|host: ||p")-latest.txt) + git cat-file -e $latest_canary_hash if [ $? -eq 0 ]; then echo ${{ github.sha }} > canary-latest.txt gsutil -h "Cache-Control: no-cache" cp canary-latest.txt gs://dl.deno.land/canary-$(rustc -vV | sed -n "s|host: ||p")-latest.txt @@ -694,9 +694,9 @@ jobs: project_id: denoland - name: Upload canary version file to dl.deno.land run: |- - lastest_canary_hash=$(gsutil cat gs://dl.deno.land/canary-latest.txt) && \ - git cat-file -e $(lastest_canary_hash) + latest_canary_hash=$(gsutil cat gs://dl.deno.land/canary-latest.txt) + git cat-file -e $latest_canary_hash if [ $? -eq 0]; then - echo ${{ github.sha }} > canary-latest.txt && \ + echo ${{ github.sha }} > canary-latest.txt gsutil -h "Cache-Control: no-cache" cp canary-latest.txt gs://dl.deno.land/canary-latest.txt fi |
