File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
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 :
You can’t perform that action at this time.
0 commit comments