Skip to content

Commit 70dbcc3

Browse files
committed
adjust github actions
1 parent ad3af11 commit 70dbcc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
id: create_release
3838
run: |
3939
TAG_NAME=${GITHUB_REF#refs/tags/}
40-
BRANCH_NAME=$(echo "${GITHUB_REF}" | sed 's/refs\/heads\///') # Extract branch name from GITHUB_REF
40+
BRANCH_NAME=$(echo "${GITHUB_REF}" | sed 's/refs\/tags\///') # Correctly extract branch name
4141
echo "Creating release for tag $TAG_NAME on branch $BRANCH_NAME"
4242
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
4343
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
@@ -46,8 +46,8 @@ jobs:
4646
if: startsWith(github.ref, 'refs/tags/v') # Run this step if the tag starts with 'v'
4747
uses: softprops/action-gh-release@v1
4848
with:
49-
tag_name: ${{ env.TAG_NAME }}
50-
release_name: Release ${{ env.TAG_NAME }} from branch ${{ env.BRANCH_NAME }} # Include branch name in release title
49+
tag_name: ${{ env.TAG_NAME }} # Tag to create release
50+
release_name: Release ${{ env.TAG_NAME }} from branch ${{ github.ref#refs/tags/}} # Include branch name in release title
5151
files: |
5252
dist/*
5353
env:

0 commit comments

Comments
 (0)