From 2c5db866a2ee62c986ebbb64a003d116458518da Mon Sep 17 00:00:00 2001 From: snek Date: Wed, 10 Jul 2024 14:13:25 -0700 Subject: [PATCH] fix publish ci (#1522) --- .github/workflows/ci.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3106aec1..caabca1d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -258,6 +258,7 @@ jobs: publish: needs: build runs-on: ${{ github.repository == 'denoland/rusty_v8' && 'ubuntu-22.04-xl' || 'ubuntu-22.04' }} + if: github.repository == 'denoland/rusty_v8' && startsWith(github.ref, 'refs/tags/') steps: - name: Configure git run: git config --global core.symlinks true @@ -285,13 +286,6 @@ jobs: merge-multiple: true - name: Publish - if: github.repository == 'denoland/rusty_v8' env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} - DRY_RUN: ${{ startsWith(github.ref, 'refs/tags/') == false }} - run: | - args="-vv --locked --allow-dirty" - if [ "$DRY_RUN" = "true" ]; then - args="$args --dry-run" - fi - cargo publish $args + run: cargo publish -vv --locked --allow-dirty