From 13c764158171149f92a5ab8d907c334878f7682c Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Wed, 4 Dec 2019 14:24:56 -0500 Subject: [PATCH] Fix auto cargo publish (#33) --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ae7fad1..a02fd968 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,6 +37,7 @@ jobs: - name: Environment (linux) if: startsWith(matrix.os, 'ubuntu') run: | + cd .. curl -LO https://github.com/mozilla/sccache/releases/download/0.2.12/sccache-0.2.12-x86_64-unknown-linux-musl.tar.gz tar -xzvf sccache-0.2.12-x86_64-unknown-linux-musl.tar.gz echo ::add-path::`pwd`/sccache-0.2.12-x86_64-unknown-linux-musl/ @@ -44,6 +45,7 @@ jobs: - name: Environment (mac) if: startsWith(matrix.os, 'macOS') run: | + cd .. curl -LO https://github.com/mozilla/sccache/releases/download/0.2.12/sccache-0.2.12-x86_64-apple-darwin.tar.gz tar -xzvf sccache-0.2.12-x86_64-apple-darwin.tar.gz echo ::add-path::`pwd`/sccache-0.2.12-x86_64-apple-darwin/ @@ -51,6 +53,7 @@ jobs: - name: Environment (windows) if: startsWith(matrix.os, 'windows') run: | + cd .. curl -LO https://github.com/mozilla/sccache/releases/download/0.2.12/sccache-0.2.12-x86_64-pc-windows-msvc.tar.gz tar -zxvf sccache-0.2.12-x86_64-pc-windows-msvc.tar.gz echo ::add-path::$(pwd)\sccache-0.2.12-x86_64-pc-windows-msvc\ @@ -77,7 +80,7 @@ jobs: cargo clippy --all-targets --release --locked -- -D clippy::all - name: Publish - if: startsWith(github.ref, 'refs/tags/') && github.repository == 'denoland/rusty_v8' + if: startsWith(github.ref, 'refs/tags/') && github.repository == 'denoland/rusty_v8' && startsWith(matrix.os, 'ubuntu') env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} run: cargo publish -vv