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