File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change 52
52
--compressed
53
53
54
54
deploy :
55
- name : Deploy Server
55
+ name : Update Server
56
56
runs-on : ubuntu-latest
57
57
needs : [startMaintenance]
58
58
if : github.ref == 'refs/heads/master'
@@ -65,10 +65,24 @@ jobs:
65
65
master && ${{ secrets.INSTALL_COMMAND }} && ${{ secrets.BUILD_COMMAND }} && ${{
66
66
secrets.RESTART_COMMAND }}"
67
67
68
- release :
69
- name : Release
68
+ changelog :
69
+ name : Changelog
70
+ runs-on : ubuntu-latest
70
71
needs : [deploy]
71
72
if : github.ref == 'refs/heads/master'
73
+ steps :
74
+ - uses : actions/checkout@v4
75
+ name : Checkout repository
76
+ - id : build_changelog
77
+ name : Build changelog
78
+ run : |
79
+ PREV_TAG=$(git tag --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | sed -n '2p')
80
+ echo "CHANGELOG=$({ git log $PREV_TAG...${{ github.ref_name }} --pretty=format:"- %s" | grep '^- feat' | sed 's/^- feat:/- New:/'; git log $PREV_TAG...v1.41.0 --pretty=format:"- %s" | grep '^- fix' | sed 's/^- fix:/- Fixed/'; })" >> $GITHUB_OUTPUT
81
+
82
+ release :
83
+ name : Update Client
84
+ needs : [changelog]
85
+ if : github.ref == 'refs/heads/master'
72
86
strategy :
73
87
matrix :
74
88
os : [ubuntu-latest, macos-latest, windows-latest]
@@ -111,7 +125,9 @@ jobs:
111
125
with :
112
126
tagName : v__VERSION__
113
127
releaseName : ' v__VERSION__'
114
- releaseBody : ' See the assets to download this version and install it.'
128
+ releaseBody : |
129
+ ${{ needs.changelog.outputs.CHANGELOG }}
130
+ See the assets to download this version and install.
115
131
releaseDraft : false
116
132
prerelease : false
117
133
You can’t perform that action at this time.
0 commit comments