From 4a0eae25aa73f65d5f0f3add6c74564d311361c2 Mon Sep 17 00:00:00 2001 From: MedzikUser Date: Sat, 18 Jun 2022 13:46:42 +0200 Subject: [PATCH] ci: run `build-release-binaries.yml` only if pushed tag --- .github/workflows/build-release-binaries.yml | 26 ++------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build-release-binaries.yml b/.github/workflows/build-release-binaries.yml index f70fb01..1ab5395 100644 --- a/.github/workflows/build-release-binaries.yml +++ b/.github/workflows/build-release-binaries.yml @@ -2,8 +2,8 @@ name: Build release binaries (and publish them if this is a tag) on: push: - branches: - - main + tags: + - "*" # pull_request: @@ -135,25 +135,3 @@ jobs: asset_name: cloud-$tag-${{ matrix.release_name }} body: ${{ steps.changelog_reader.outputs.log_entry }} if: startsWith(github.ref, 'refs/tags/v') - - crates: - name: Publish to crates.io - runs-on: ubuntu-latest - - if: startsWith(github.ref, 'refs/tags/v') - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Setup Rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: ${{ matrix.target }} - - - name: Publish to crates.io - uses: actions-rs/cargo@v1 - with: - command: publish - args: --token ${{ secrets.CARGO_REGISTRY_TOKEN }}