Skip to content

Commit 3e9b441

Browse files
authored
Add release creation to bump workflow (#3)
1 parent 3306d01 commit 3e9b441

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,17 @@ jobs:
4444
fi
4545
4646
- name: Bump version
47+
id: bump
4748
if: steps.bump-type.outputs.type != ''
48-
run: bump ${{ steps.bump-type.outputs.type }} --brave
49+
run: |
50+
bump ${{ steps.bump-type.outputs.type }} --brave
51+
echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
4952
env:
5053
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
55+
- name: Create GitHub Release
56+
if: steps.bump.outputs.tag != ''
57+
uses: softprops/action-gh-release@v2
58+
with:
59+
tag_name: ${{ steps.bump.outputs.tag }}
60+
generate_release_notes: true

0 commit comments

Comments
 (0)