Skip to content

Commit 30dc682

Browse files
authored
Extracting release name from tag name (#256)
* Creating a release workflow, combining it with contributor workflow * Updating tag prefix * Disabling contributors generation until I can fix it * Fixing release workflow to use Rust stable * Only building/checking if actual source code files change * Extracting release name from tag name
1 parent 610bfe6 commit 30dc682

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,15 @@ jobs:
3636
components: rustfmt
3737
- name: Build release
3838
run: cargo build --release
39+
- name: Split branch name
40+
env:
41+
BRANCH: ${{ github.ref_name }}
42+
id: split
43+
run: echo "fragment=${BRANCH##*/}" >> $GITHUB_OUTPUT
3944
- name: Release
4045
uses: softprops/action-gh-release@v2
4146
with:
4247
files: target/release/bucketd
4348
generate_release_notes: true
4449
discussion_category_name: "Announcements"
45-
make_latest: true
50+
name: ${{ steps.split.outputs.fragment }}

0 commit comments

Comments
 (0)