1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

ci: fix releasing canary (#25689)

This commit is contained in:
Bartek Iwańczuk 2024-09-17 17:53:32 +01:00 committed by GitHub
parent 039e15fc84
commit 915b73571c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View file

@ -813,8 +813,8 @@ const ci = {
].join("\n"), ].join("\n"),
run: [ run: [
'gsutil -h "Cache-Control: public, max-age=3600" cp ./target/release/*.zip gs://dl.deno.land/canary/$(git rev-parse HEAD)/', '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)', 'latest_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)", "git cat-file -e $latest_canary_hash",
"if [ $? -eq 0 ]; then", "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-$(rustc -vV | sed -n "s|host: ||p")-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',
@ -1096,10 +1096,10 @@ const ci = {
{ {
name: "Upload canary version file to dl.deno.land", name: "Upload canary version file to dl.deno.land",
run: [ run: [
"lastest_canary_hash=$(gsutil cat gs://dl.deno.land/canary-latest.txt) && \\", "latest_canary_hash=$(gsutil cat gs://dl.deno.land/canary-latest.txt)",
"git cat-file -e $(lastest_canary_hash)", "git cat-file -e $latest_canary_hash",
"if [ $? -eq 0]; then", "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', ' gsutil -h "Cache-Control: no-cache" cp canary-latest.txt gs://dl.deno.land/canary-latest.txt',
"fi", "fi",
].join("\n"), ].join("\n"),

View file

@ -486,8 +486,8 @@ jobs:
github.ref == 'refs/heads/main') github.ref == 'refs/heads/main')
run: |- run: |-
gsutil -h "Cache-Control: public, max-age=3600" cp ./target/release/*.zip gs://dl.deno.land/canary/$(git rev-parse HEAD)/ 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) latest_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) git cat-file -e $latest_canary_hash
if [ $? -eq 0 ]; then 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-$(rustc -vV | sed -n "s|host: ||p")-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 project_id: denoland
- name: Upload canary version file to dl.deno.land - name: Upload canary version file to dl.deno.land
run: |- run: |-
lastest_canary_hash=$(gsutil cat gs://dl.deno.land/canary-latest.txt) && \ latest_canary_hash=$(gsutil cat gs://dl.deno.land/canary-latest.txt)
git cat-file -e $(lastest_canary_hash) git cat-file -e $latest_canary_hash
if [ $? -eq 0]; then 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 gsutil -h "Cache-Control: no-cache" cp canary-latest.txt gs://dl.deno.land/canary-latest.txt
fi fi