File tree Expand file tree Collapse file tree 1 file changed +26
-11
lines changed Expand file tree Collapse file tree 1 file changed +26
-11
lines changed Original file line number Diff line number Diff line change 1
- ---
2
- name : " release"
1
+ name : Bump version
3
2
4
3
on :
5
4
push :
6
- tags :
7
- - " v* "
5
+ branches :
6
+ - master
8
7
9
- jobs :
10
- tagged-release :
11
- name : " Release"
12
- runs-on : " ubuntu-latest"
8
+ permissions :
9
+ contents : write
13
10
11
+ jobs :
12
+ bump-version :
13
+ if : " !startsWith(github.event.head_commit.message, 'bump:')"
14
+ runs-on : ubuntu-latest
15
+ name : " Bump version and create changelog with commitizen"
14
16
steps :
15
- - uses : " marvinpinto/action-automatic-releases@latest"
17
+ - name : Check out
18
+ uses : actions/checkout@v4
19
+ with :
20
+ fetch-depth : 0
21
+ token : " ${{ secrets.GITHUB_TOKEN }}"
22
+ - name : Create bump and changelog
23
+ uses : commitizen-tools/commitizen-action@master
24
+ with :
25
+ github_token : ${{ secrets.GITHUB_TOKEN }}
26
+ changelog_increment_filename : body.md
27
+ - name : Release
28
+ uses : softprops/action-gh-release@v1
16
29
with :
17
- repo_token : " ${{ secrets.GITHUB_TOKEN }}"
18
- prerelease : false
30
+ body_path : " body.md"
31
+ tag_name : ${{ env.REVISION }}
32
+ env :
33
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments