From d7203092039d3c46ca8480ff8eecf612deb2b2f6 Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Fri, 17 Jan 2020 17:53:13 -0500 Subject: Auto cargo-publish on tags (#3704) fix tools/cargo_publish.py --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.github/workflows/ci.yml') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48d86e5c4..28b8bc300 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -186,5 +186,14 @@ jobs: target/release/deno_src.tar.gz draft: true + - name: Publish + if: > + startsWith(github.ref, 'refs/tags/') && + github.repository == 'denoland/deno' && + runner.os == 'Linux' + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + run: ./tools/cargo_publish.py + - name: Stop sccache run: sccache --stop-server -- cgit v1.2.3