1
1
name : VCPKG Continuous Integration
2
+
2
3
on :
4
+ # Run this workflow once every 6 hours against the master branch
5
+ schedule :
6
+ - cron : " 0 */6 * * *"
7
+
3
8
push :
4
9
branches :
5
- - master
10
+ - ' master'
11
+
12
+ tags :
13
+ - ' *'
14
+
6
15
pull_request :
7
- schedule :
8
- # run CI every day even if no PRs/merges occur
9
- - cron : ' 0 6 * * *'
16
+ branches :
17
+ - ' *'
10
18
11
19
jobs :
12
20
build_linux :
@@ -129,13 +137,25 @@ jobs:
129
137
path : ${{ steps.package_names.outputs.TGZ_PACKAGE_PATH }}
130
138
131
139
132
- release_linux :
140
+ release_packages :
133
141
# Do not run the release procedure if any of the builds has failed
134
142
needs : [ build_linux, build_mac ]
135
143
runs-on : ubuntu-20.04
136
144
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
137
145
138
146
steps :
147
+ - name : Clone the rellic repository
148
+ uses : actions/checkout@v2
149
+ with :
150
+ path : rellic
151
+ fetch-depth : 0
152
+
153
+ - name : Generate the changelog
154
+ shell : bash
155
+ working-directory : rellic
156
+ run : |
157
+ ./scripts/generate_changelog.sh changelog.md
158
+
139
159
- name : Download all artifacts
140
160
uses : actions/download-artifact@v2
141
161
@@ -149,6 +169,7 @@ jobs:
149
169
with :
150
170
tag_name : ${{ github.ref }}
151
171
release_name : Version ${{ github.ref }}
172
+ body_path : rellic/changelog.md
152
173
draft : true
153
174
prerelease : true
154
175
@@ -160,6 +181,9 @@ jobs:
160
181
zip -r9 rellic_ubuntu-20.04_packages.zip \
161
182
ubuntu-20.04*
162
183
184
+ zip -r9 rellic_macos-10.15_packages.zip \
185
+ macos-10.15*
186
+
163
187
- name : Upload the Ubuntu 18.04 packages
164
188
uses : actions/upload-release-asset@v1
165
189
@@ -184,37 +208,6 @@ jobs:
184
208
asset_name : rellic_ubuntu-20.04_packages.zip
185
209
asset_content_type : application/gzip
186
210
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
211
- name : Upload the macOS 10.15 packages
219
212
uses : actions/upload-release-asset@v1
220
213
0 commit comments