@@ -132,13 +132,25 @@ jobs:
132
132
133
133
134
134
135
- release_linux :
135
+ release_packages :
136
136
# Do not run the release procedure if any of the builds has failed
137
137
needs : [ build_linux, build_mac ]
138
138
runs-on : ubuntu-20.04
139
139
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
140
140
141
141
steps :
142
+ - name : Clone the remill repository
143
+ uses : actions/checkout@v2
144
+ with :
145
+ path : remill
146
+ fetch-depth : 0
147
+
148
+ - name : Generate the changelog
149
+ shell : bash
150
+ working-directory : remill
151
+ run : |
152
+ ./scripts/generate_changelog.sh changelog.md
153
+
142
154
- name : Download all artifacts
143
155
uses : actions/download-artifact@v2
144
156
@@ -152,6 +164,7 @@ jobs:
152
164
with :
153
165
tag_name : ${{ github.ref }}
154
166
release_name : Version ${{ github.ref }}
167
+ body_path : remill/changelog.md
155
168
draft : true
156
169
prerelease : true
157
170
@@ -163,6 +176,9 @@ jobs:
163
176
zip -r9 remill_ubuntu-20.04_packages.zip \
164
177
ubuntu-20.04*
165
178
179
+ zip -r9 remill_macos-10.15_packages.zip \
180
+ macos-10.15*
181
+
166
182
- name : Upload the Ubuntu 18.04 packages
167
183
uses : actions/upload-release-asset@v1
168
184
@@ -187,37 +203,6 @@ jobs:
187
203
asset_name : remill_ubuntu-20.04_packages.zip
188
204
asset_content_type : application/gzip
189
205
190
-
191
-
192
-
193
- release_macos :
194
- # Do not run the release procedure if any of the builds has failed
195
- needs : [ build_linux, build_mac ]
196
- runs-on : ' macos-10.15'
197
- if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
198
-
199
- steps :
200
- - name : Download all artifacts
201
- uses : actions/download-artifact@v2
202
-
203
- - name : Draft the new release
204
- id : create_release
205
- uses : actions/create-release@v1
206
-
207
- env :
208
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
209
-
210
- with :
211
- tag_name : ${{ github.ref }}
212
- release_name : Version ${{ github.ref }}
213
- draft : true
214
- prerelease : true
215
-
216
- - name : Group the packages by platform
217
- run : |
218
- zip -r9 remill_macos-10.15_packages.zip \
219
- macos-10.15*
220
-
221
206
- name : Upload the macOS 10.15 packages
222
207
uses : actions/upload-release-asset@v1
223
208
0 commit comments