Skip to content

Commit ad3af11

Browse files
committed
adjust github actions
1 parent ca0d889 commit ad3af11

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,17 @@ jobs:
3737
id: create_release
3838
run: |
3939
TAG_NAME=${GITHUB_REF#refs/tags/}
40-
echo "Creating release for tag $TAG_NAME"
40+
BRANCH_NAME=$(echo "${GITHUB_REF}" | sed 's/refs\/heads\///') # Extract branch name from GITHUB_REF
41+
echo "Creating release for tag $TAG_NAME on branch $BRANCH_NAME"
4142
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
43+
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
4244
4345
- name: Upload Package to Release
4446
if: startsWith(github.ref, 'refs/tags/v') # Run this step if the tag starts with 'v'
4547
uses: softprops/action-gh-release@v1
4648
with:
4749
tag_name: ${{ env.TAG_NAME }}
50+
release_name: Release ${{ env.TAG_NAME }} from branch ${{ env.BRANCH_NAME }} # Include branch name in release title
4851
files: |
4952
dist/*
5053
env:

0 commit comments

Comments
 (0)