mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
ci: upload canary latest to correct path (#22210)
Also don't always upload cache - this was a bug I introduced in the CI refactor.
This commit is contained in:
parent
54d18f3d28
commit
a82eb3fb3d
2 changed files with 4 additions and 5 deletions
5
.github/workflows/ci.generate.ts
vendored
5
.github/workflows/ci.generate.ts
vendored
|
@ -726,7 +726,7 @@ const ci = {
|
||||||
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)/',
|
||||||
"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-${{ matrix.arch }}-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',
|
||||||
].join("\n"),
|
].join("\n"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -992,8 +992,7 @@ const ci = {
|
||||||
name: "Save cache build output (main)",
|
name: "Save cache build output (main)",
|
||||||
uses: "actions/cache/save@v3",
|
uses: "actions/cache/save@v3",
|
||||||
if:
|
if:
|
||||||
// TODO(@lucacasonato): revert before landing
|
"(matrix.job == 'test' || matrix.job == 'lint') && github.ref == 'refs/heads/main'",
|
||||||
"(matrix.job == 'test' || matrix.job == 'lint')", // && github.ref == 'refs/heads/main'",
|
|
||||||
with: {
|
with: {
|
||||||
path: [
|
path: [
|
||||||
"./target",
|
"./target",
|
||||||
|
|
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -438,7 +438,7 @@ jobs:
|
||||||
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)/
|
||||||
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-${{ matrix.arch }}-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
|
||||||
- name: Autobahn testsuite
|
- name: Autobahn testsuite
|
||||||
if: |-
|
if: |-
|
||||||
!(matrix.skip) && (matrix.os == 'linux' &&
|
!(matrix.skip) && (matrix.os == 'linux' &&
|
||||||
|
@ -623,7 +623,7 @@ jobs:
|
||||||
draft: true
|
draft: true
|
||||||
- name: Save cache build output (main)
|
- name: Save cache build output (main)
|
||||||
uses: actions/cache/save@v3
|
uses: actions/cache/save@v3
|
||||||
if: '!(matrix.skip) && ((matrix.job == ''test'' || matrix.job == ''lint''))'
|
if: '!(matrix.skip) && ((matrix.job == ''test'' || matrix.job == ''lint'') && github.ref == ''refs/heads/main'')'
|
||||||
with:
|
with:
|
||||||
path: |-
|
path: |-
|
||||||
./target
|
./target
|
||||||
|
|
Loading…
Reference in a new issue