Skip to content

Commit

Permalink
adjust github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecarr committed Oct 4, 2024
1 parent ca0d889 commit ad3af11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,17 @@ jobs:
id: create_release
run: |
TAG_NAME=${GITHUB_REF#refs/tags/}
echo "Creating release for tag $TAG_NAME"
BRANCH_NAME=$(echo "${GITHUB_REF}" | sed 's/refs\/heads\///') # Extract branch name from GITHUB_REF
echo "Creating release for tag $TAG_NAME on branch $BRANCH_NAME"
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
- name: Upload Package to Release
if: startsWith(github.ref, 'refs/tags/v') # Run this step if the tag starts with 'v'
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.TAG_NAME }}
release_name: Release ${{ env.TAG_NAME }} from branch ${{ env.BRANCH_NAME }} # Include branch name in release title
files: |
dist/*
env:
Expand Down

0 comments on commit ad3af11

Please sign in to comment.