ci: run `build-release-binaries.yml` only if pushed tag
This commit is contained in:
parent
7300bda67c
commit
4a0eae25aa
|
@ -2,8 +2,8 @@ name: Build release binaries (and publish them if this is a tag)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- main
|
- "*"
|
||||||
|
|
||||||
# pull_request:
|
# pull_request:
|
||||||
|
|
||||||
|
@ -135,25 +135,3 @@ jobs:
|
||||||
asset_name: cloud-$tag-${{ matrix.release_name }}
|
asset_name: cloud-$tag-${{ matrix.release_name }}
|
||||||
body: ${{ steps.changelog_reader.outputs.log_entry }}
|
body: ${{ steps.changelog_reader.outputs.log_entry }}
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
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 }}
|
|
||||||
|
|
Loading…
Reference in New Issue