File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Release
22
33on :
4- workflow_dispatch
4+ workflow_dispatch :
55
66jobs :
7- BumpVersion :
7+ Release :
88 runs-on : ubuntu-latest
9- name : " Bump version and create changelog with commitizen"
109 env :
1110 CI : true
1211 steps :
1312 - name : Check out
14- uses : actions/checkout@v3
13+ uses : actions/checkout@v4
1514 with :
16- ref : ${{ github.ref }}
1715 fetch-depth : 0
1816 token : ${{ secrets.GH_TOKEN }}
17+
1918 - name : Check if branch is master
2019 run : |
2120 if [[ "${GITHUB_REF##*/}" != "master" ]]; then
2221 echo "This workflow can only be triggered for the master branch."
2322 exit 1
2423 fi
25- - id : cz
26- name : Create bump and changelog
27- uses : commitizen-tools/commitizen-action@master
28- with :
29- github_token : ${{ secrets.GH_TOKEN }}
30- - name : Print Version
31- run : echo "Bumped to version ${{ steps.cz.outputs.version }}"
3224
33- Release :
34- needs : BumpVersion
35- runs-on : ubuntu-latest
36- env :
37- CI : true
38- steps :
39- - uses : actions/checkout@v4
40- with :
41- ref : ${{ github.ref }}
4225 - name : Set up JDK
4326 uses : actions/setup-java@v3
4427 with :
6649
6750 - name : Archive artifacts
6851 uses : actions/upload-artifact@v4
52+ if : always()
6953 with :
7054 name : artifacts
7155 path : |
7256 build/libs
73- build/publications
57+ build/publications
58+ build/jreleaser
You can’t perform that action at this time.
0 commit comments