Skip to content

Commit

Permalink
ci: Add short commit hash to release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
erak committed Mar 5, 2024
1 parent 47349b3 commit 79051c1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
steps:
- name: Checkout source code
uses: actions/checkout@v3
- uses: benjlevesque/[email protected]
id: short-sha
with:
length: 6
- name: Configure build cache
uses: actions/cache@v3
with:
Expand All @@ -43,7 +47,7 @@ jobs:
- name: Upload release binaries
uses: actions/upload-artifact@v4
with:
name: radicle-tui_${{ matrix.target }}
name: radicle-tui_0.3.0_${{ steps.short-sha.outputs.sha }}_${{ matrix.target }}
path: target/${{ matrix.target }}/release/rad-tui

release-macos-binaries:
Expand All @@ -58,6 +62,10 @@ jobs:
- x86_64-apple-darwin
steps:
- uses: actions/checkout@v3
- uses: benjlevesque/[email protected]
id: short-sha
with:
length: 6
- name: Configure build cache
uses: actions/cache@v3
with:
Expand All @@ -74,5 +82,5 @@ jobs:
- name: Upload release binaries
uses: actions/upload-artifact@v4
with:
name: radicle-tui_${{ matrix.target }}
name: radicle-tui_0.3.0_${{ steps.short-sha.outputs.sha }}_${{ matrix.target }}
path: target/${{ matrix.target }}/release/rad-tui

0 comments on commit 79051c1

Please sign in to comment.