mirror of
https://github.com/MedzikUser/HomeDisk.git
synced 2024-08-14 21:46:53 +00:00
ci: run build-release-binaries.yml
only if pushed tag
This commit is contained in:
parent
7300bda67c
commit
4a0eae25aa
1 changed files with 2 additions and 24 deletions
26
.github/workflows/build-release-binaries.yml
vendored
26
.github/workflows/build-release-binaries.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue