50
50
with :
51
51
name : storage
52
52
path : ${{ github.workspace }}/artifacts
53
- name : ' Upload Package'
53
+ name : ' Upload artifacts folder'
54
+ - uses : actions/upload-artifact@v1
55
+ with :
56
+ name : storage-${{ matrix.os }}
57
+ path : ${{ github.workspace }}/artifacts/native
58
+ name : ' Upload native folder'
54
59
55
60
test :
56
61
name : Unit Test
@@ -112,6 +117,7 @@ jobs:
112
117
path : .dotnet
113
118
key : ${{ runner.os }}-dotnet-${{ hashFiles('build.config') }}
114
119
- uses : actions/download-artifact@v1
120
+ name : Download artifacts folder
115
121
with :
116
122
name : storage
117
123
path : ${{ github.workspace }}/artifacts
@@ -151,6 +157,7 @@ jobs:
151
157
path : .dotnet
152
158
key : ${{ runner.os }}-dotnet-${{ hashFiles('build.config') }}
153
159
- uses : actions/download-artifact@v1
160
+ name : Download artifacts folder
154
161
with :
155
162
name : storage
156
163
path : ${{ github.workspace }}/artifacts
@@ -174,29 +181,30 @@ jobs:
174
181
CHOCOLATEY_API_KEY : ${{ secrets.CHOCOLATEY_API_KEY }}
175
182
CHOCOLATEY_API_URL : ${{ secrets.CHOCOLATEY_API_URL }}
176
183
steps :
177
- - uses : actions/checkout@v2
178
- - name : Fetch all history for all tags and branches
179
- run : |
180
- git fetch --prune --unshallow
181
- - name : Cache tools
182
- id : cache-tools
183
- uses : actions/cache@v1
184
- with :
185
- path : tools
186
- key : ${{ runner.os }}-tools-${{ hashFiles('build.cake') }}
187
- - name : Cache dotnet
188
- id : cache-dotnet
189
- uses : actions/cache@v1
190
- with :
191
- path : .dotnet
192
- key : ${{ runner.os }}-dotnet-${{ hashFiles('build.config') }}
193
- - uses : actions/download-artifact@v1
194
- with :
195
- name : storage
196
- path : ${{ github.workspace }}/artifacts
197
- - name : ' [Publish]'
198
- shell : pwsh
199
- run : ./build.ps1 -target Publish-${{ matrix.taskName }}
184
+ - uses : actions/checkout@v2
185
+ - name : Fetch all history for all tags and branches
186
+ run : |
187
+ git fetch --prune --unshallow
188
+ - name : Cache tools
189
+ id : cache-tools
190
+ uses : actions/cache@v1
191
+ with :
192
+ path : tools
193
+ key : ${{ runner.os }}-tools-${{ hashFiles('build.cake') }}
194
+ - name : Cache dotnet
195
+ id : cache-dotnet
196
+ uses : actions/cache@v1
197
+ with :
198
+ path : .dotnet
199
+ key : ${{ runner.os }}-dotnet-${{ hashFiles('build.config') }}
200
+ - uses : actions/download-artifact@v1
201
+ name : Download artifacts folder
202
+ with :
203
+ name : storage
204
+ path : ${{ github.workspace }}/artifacts
205
+ - name : ' [Publish]'
206
+ shell : pwsh
207
+ run : ./build.ps1 -target Publish-${{ matrix.taskName }}
200
208
201
209
release :
202
210
name : Release
@@ -205,26 +213,42 @@ jobs:
205
213
env :
206
214
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
207
215
steps :
208
- - uses : actions/checkout@v2
209
- - name : Fetch all history for all tags and branches
210
- run : |
211
- git fetch --prune --unshallow
212
- - name : Cache tools
213
- id : cache-tools
214
- uses : actions/cache@v1
215
- with :
216
- path : tools
217
- key : ${{ runner.os }}-tools-${{ hashFiles('build.cake') }}
218
- - name : Cache dotnet
219
- id : cache-dotnet
220
- uses : actions/cache@v1
221
- with :
222
- path : .dotnet
223
- key : ${{ runner.os }}-dotnet-${{ hashFiles('build.config') }}
224
- - uses : actions/download-artifact@v1
225
- with :
226
- name : storage
227
- path : ${{ github.workspace }}/artifacts
228
- - name : ' [Release]'
229
- shell : pwsh
230
- run : ./build.ps1 -target Release
216
+ - uses : actions/checkout@v2
217
+ - name : Fetch all history for all tags and branches
218
+ run : |
219
+ git fetch --prune --unshallow
220
+ - name : Cache tools
221
+ id : cache-tools
222
+ uses : actions/cache@v1
223
+ with :
224
+ path : tools
225
+ key : ${{ runner.os }}-tools-${{ hashFiles('build.cake') }}
226
+ - name : Cache dotnet
227
+ id : cache-dotnet
228
+ uses : actions/cache@v1
229
+ with :
230
+ path : .dotnet
231
+ key : ${{ runner.os }}-dotnet-${{ hashFiles('build.config') }}
232
+ - uses : actions/download-artifact@v1
233
+ name : Download artifacts folder
234
+ with :
235
+ name : storage
236
+ path : ${{ github.workspace }}/artifacts
237
+ - uses : actions/download-artifact@v1
238
+ name : Download windows native folder
239
+ with :
240
+ name : storage-windows-latest
241
+ path : ${{ github.workspace }}/artifacts/native
242
+ - uses : actions/download-artifact@v1
243
+ name : Download linux native folder
244
+ with :
245
+ name : storage-ubuntu-latest
246
+ path : ${{ github.workspace }}/artifacts/native
247
+ - uses : actions/download-artifact@v1
248
+ name : Download osx native folder
249
+ with :
250
+ name : storage-macos-latest
251
+ path : ${{ github.workspace }}/artifacts/native
252
+ - name : ' [Release]'
253
+ shell : pwsh
254
+ run : ./build.ps1 -target Release
0 commit comments