Skip to content

Commit

Permalink
update gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Sep 5, 2024
1 parent ab12891 commit 06f38d3
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
- "ci-bins*"
tags: # run this also on release candidates
- "[0-9]+.[0-9]+.[0-9]*"
# make binaries which may be ahead of releases to use in CI jobs
- "ci-bins"

jobs:
publish:
permissions:
Expand All @@ -32,11 +31,24 @@ jobs:
# size and performance optimized binary with profile.cli
run: cargo b --release -p libra

# release bin
- name: libra publish
if: ${{ !contains(github.ref, 'ci-bins') }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/libra
tag: ${{ github.ref }}
overwrite: true
file_glob: true

# CI bin
- name: libra publish
if: ${{ contains(github.ref, 'ci-bins') }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/libra
tag: ci-bins
overwrite: true
file_glob: true

0 comments on commit 06f38d3

Please sign in to comment.