@@ -189,7 +189,7 @@ jobs:
189
189
mkdir ~/release
190
190
dotnet publish --self-contained -c ${{ env.BUILD_CONFIG }} -r linux-x64 -o cli/ src/CLI/Monai.Deploy.InformaticsGateway.CLI.csproj
191
191
pushd cli && rm *.pdb
192
- zip -r ~/release/mig-cli-linux-x64.zip *
192
+ zip -r ~/release/mig-cli-${{ env.GitVersion_SemVer }}- linux-x64.zip *
193
193
popd
194
194
ls -lR ~/release
195
195
@@ -199,14 +199,14 @@ jobs:
199
199
mkdir ~/release
200
200
dotnet publish --self-contained -c ${{ env.BUILD_CONFIG }} -r win-x64 -o cli/ src/CLI/Monai.Deploy.InformaticsGateway.CLI.csproj
201
201
pushd cli && rm *.pdb
202
- Compress-Archive -Path * -DestinationPath ~/release/mig-cli-windows -x64.zip
202
+ Compress-Archive -Path * -DestinationPath ~/release/mig-cli-${{ env.GitVersion_SemVer }}-win -x64.zip
203
203
popd
204
204
dir -r ~/release
205
205
206
206
- name : Upload CLI
207
207
208
208
with :
209
- name : cli
209
+ name : artifacts
210
210
path : ~/release
211
211
retention-days : 7
212
212
@@ -225,7 +225,7 @@ jobs:
225
225
with :
226
226
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
227
227
tags : |
228
- type=raw,value=${{env.GitVersion_SemVer}}
228
+ type=raw,value=${{ env.GitVersion_SemVer }}
229
229
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
230
230
231
231
- name : Build and push Docker image
@@ -301,21 +301,21 @@ jobs:
301
301
run : |
302
302
mkdir ~/release
303
303
pushd docs/_site
304
- zip -r ~/release/mig-docs.zip *
304
+ zip -r ~/release/mig-docs-${{ env.GitVersion_SemVer }} .zip *
305
305
popd
306
306
ls -lR ~/release
307
307
308
308
- name : Upload docs
309
309
310
310
with :
311
- name : docs
311
+ name : artifacts
312
312
path : ~/release
313
313
retention-days : 7
314
314
315
315
release :
316
316
if : ${{ contains(github.ref, 'refs/heads/main') }}
317
317
runs-on : ubuntu-latest
318
- needs : [build, unit-test, docs]
318
+ needs : [calc-version, build, unit-test, docs]
319
319
env :
320
320
SEMVER : ${{ needs.calc-version.outputs.semVer }}
321
321
PRERELEASELABEL : ${{ needs.calc-version.outputs.preReleaseLabel }}
@@ -327,11 +327,10 @@ jobs:
327
327
fetch-depth : 0
328
328
329
329
- uses : actions/download-artifact@v2
330
- with :
331
- path : release/
330
+ id : download
332
331
333
332
- name : List artifacts
334
- run : ls -lR release/
333
+ run : ls -ldR ${{steps.download.outputs.download-path}}/**/*
335
334
336
335
- name : Extract owner and repo
337
336
uses : jungwinter/split@v1
@@ -352,11 +351,11 @@ jobs:
352
351
owner : ${{ steps.repo.outputs._0 }}
353
352
repository : ${{ steps.repo.outputs._1 }}
354
353
milestone : ${{ env.MAJORMINORPATCH }}
355
- name : " Release ${{ env.MAJORMINORPATCH }}"
354
+ name : " Release v ${{ env.MAJORMINORPATCH }}"
356
355
assets : |
357
- release/cli/ mig-cli-linux-x64.zip
358
- release/cli/ mig-cli-windows -x64.zip
359
- release/docs/ mig-docs.zip
356
+ artifacts/ mig-cli-${{ env.SEMVER }} -linux-x64.zip
357
+ artifacts/ mig-cli-${{ env.SEMVER }}-win -x64.zip
358
+ artifacts/ mig-docs-${{ env.SEMVER }} .zip
360
359
361
360
- name : Publish release with GitReleaseManager
362
361
uses :
gittools/actions/gitreleasemanager/[email protected]
0 commit comments