ci: run `build-release-binaries.yml` only if pushed tag

This commit is contained in:
MedzikUser 2022-06-18 13:46:42 +02:00
parent 7300bda67c
commit 4a0eae25aa
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
1 changed files with 2 additions and 24 deletions

View File

@ -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 }}