Skip to content

Commit d559234

Browse files
zhu-xiaoweixiaoweii
andauthored
ci: support automatically creating github release (#34)
Co-authored-by: xiaoweii <xiaoweii@amazom.com>
1 parent b20086b commit d559234

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
changelog:
2+
categories:
3+
- title: Feature
4+
labels:
5+
- enhancement
6+
- title: Fix
7+
labels:
8+
- bug
9+
- title: Other Changes
10+
labels:
11+
- "*"

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,12 @@ jobs:
2727
git add .
2828
git commit -m 'release: clickstream Swift ${{ env.NEW_VERSION }}'
2929
git push
30+
git tag ${{ env.NEW_VERSION }}
31+
git push origin ${{ env.NEW_VERSION }}
32+
- name: Create GitHub release
33+
uses: softprops/action-gh-release@v1
34+
with:
35+
name: "Clickstream Swift ${{ env.NEW_VERSION }}"
36+
tag_name: "${{ env.NEW_VERSION }}"
37+
prerelease: true
38+
generate_release_notes: true

0 commit comments

Comments
 (0)