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 eb1b0fd commit e483715
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/nuke-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: nuke the CI
on:
push:
tags:
- "nuke-ci*"
workflow_dispatch:

jobs:
delete_all_runs:
name: delete all workflow runs
Expand Down
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 e483715

Please sign in to comment.