@@ -37,25 +37,27 @@ jobs:
37
37
38
38
outputs :
39
39
semVer : ${{ steps.gitversion.outputs.semVer }}
40
- preReleaseLabel : ${{ steps.gitversion.outputs.preReleaseLabel }}
41
- majorMinorPatch : ${{ steps.gitversion.outputs.majorMinorPatch }}
42
- nuGetVersionV2 : ${{ steps.gitversion.outputs.nuGetVersionV2 }}
40
+ preReleaseLabel : ${{ steps.gitversion.outputs.PreReleaseLabel }}
41
+ majorMinorPatch : ${{ steps.gitversion.outputs.MajorMinorPatch }}
42
+ nuGetVersionV2 : ${{ steps.gitversion.outputs.MajorMinorPatch }}
43
43
44
44
steps :
45
45
- uses : actions/checkout@v4
46
46
with :
47
47
fetch-depth : 0
48
48
49
- - uses : actions/setup-dotnet@v3
49
+ - uses : actions/setup-dotnet@v4
50
50
with :
51
51
dotnet-version : " 8.0.x"
52
52
53
- - name : Install GitVersion
54
- run : dotnet tool install --global GitVersion.Tool
53
+ - name : Setup GitVersion
54
+ uses :
gittools/actions/gitversion/[email protected]
55
+ with :
56
+ versionSpec : ' 6.0.x'
55
57
56
58
- name : Determine Version
57
59
id : gitversion
58
- uses : gittools/actions/gitversion/execute@v0.10.2
60
+ uses : gittools/actions/gitversion/execute@v3.1.11
59
61
with :
60
62
useConfigFile : true
61
63
updateAssemblyInfo : true
66
68
run : cat src/AssemblyInfo.cs
67
69
68
70
- name : Upload AssemblyInfo
69
- uses : actions/upload-artifact@v3.1 .2
71
+ uses : actions/upload-artifact@v4.6 .2
70
72
if : always()
71
73
with :
72
74
name : assembly-info
@@ -86,20 +88,20 @@ jobs:
86
88
with :
87
89
fetch-depth : 0
88
90
89
- - uses : actions/setup-dotnet@v3
91
+ - uses : actions/setup-dotnet@v4
90
92
with :
91
93
dotnet-version : " 8.0.x"
92
94
93
95
- name : Enable NuGet cache
94
- uses : actions/cache@v3.3.2
96
+ uses : actions/cache@v4.2.3
95
97
with :
96
98
path : ~/.nuget/packages
97
99
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
98
100
restore-keys : |
99
101
${{ runner.os }}-nuget
100
102
101
103
- name : Initialize CodeQL
102
- uses : github/codeql-action/init@v2
104
+ uses : github/codeql-action/init@v3
103
105
with :
104
106
languages : csharp
105
107
@@ -112,7 +114,7 @@ jobs:
112
114
working-directory : ./src
113
115
114
116
- name : Perform CodeQL Analysis
115
- uses : github/codeql-action/analyze@v2
117
+ uses : github/codeql-action/analyze@v3
116
118
117
119
analyze :
118
120
runs-on : ubuntu-latest
@@ -127,7 +129,7 @@ jobs:
127
129
with :
128
130
fetch-depth : 0
129
131
130
- - uses : actions/setup-dotnet@v3
132
+ - uses : actions/setup-dotnet@v4
131
133
with :
132
134
dotnet-version : " 8.0.x"
133
135
@@ -141,7 +143,7 @@ jobs:
141
143
cache : yes
142
144
143
145
- name : Enable NuGet cache
144
- uses : actions/cache@v3.3.2
146
+ uses : actions/cache@v4.2.3
145
147
with :
146
148
path : ~/.nuget/packages
147
149
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -184,17 +186,17 @@ jobs:
184
186
- 27017:27017
185
187
steps :
186
188
- name : Set up JDK 17
187
- uses : actions/setup-java@v3
189
+ uses : actions/setup-java@v4
188
190
with :
189
191
distribution : zulu
190
192
java-version : ' 17'
191
193
192
- - uses : actions/setup-dotnet@v3
194
+ - uses : actions/setup-dotnet@v4
193
195
with :
194
196
dotnet-version : " 8.0.x"
195
197
196
198
- name : Enable NuGet cache
197
- uses : actions/cache@v3.3.2
199
+ uses : actions/cache@v4.2.3
198
200
with :
199
201
path : ~/.nuget/packages
200
202
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -268,12 +270,12 @@ jobs:
268
270
with :
269
271
fetch-depth : 0
270
272
271
- - uses : actions/setup-dotnet@v3
273
+ - uses : actions/setup-dotnet@v4
272
274
with :
273
275
dotnet-version : " 8.0.x"
274
276
275
277
- name : Enable NuGet cache
276
- uses : actions/cache@v3.3.2
278
+ uses : actions/cache@v4.2.3
277
279
with :
278
280
path : ~/.nuget/packages
279
281
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -295,10 +297,10 @@ jobs:
295
297
popd
296
298
297
299
- name : Upload Integration Test Results
298
- uses : actions/upload-artifact@v3.1 .2
300
+ uses : actions/upload-artifact@v4.6 .2
299
301
if : always()
300
302
with :
301
- name : integration-${{ matrix.feature }}
303
+ name : integration-${{ matrix.feature }}-${{ matrix.database }}
302
304
path : |
303
305
${{ github.workspace }}/LivingDoc.html
304
306
${{ github.workspace }}/services.log
@@ -311,8 +313,8 @@ jobs:
311
313
env :
312
314
NUGETVER : ${{ needs.calc-version.outputs.nuGetVersionV2 }}
313
315
SEMVER : ${{ needs.calc-version.outputs.semVer }}
314
- PRERELEASELABEL : ${{ needs.calc-version.outputs.preReleaseLabel }}
315
- MAJORMINORPATCH : ${{ needs.calc-version.outputs.majorMinorPatch }}
316
+ PRERELEASELABEL : ${{ needs.calc-version.outputs.PreReleaseLabel }}
317
+ MAJORMINORPATCH : ${{ needs.calc-version.outputs.MajorMinorPatch }}
316
318
strategy :
317
319
matrix :
318
320
os : [ubuntu-latest]
@@ -333,12 +335,12 @@ jobs:
333
335
with :
334
336
fetch-depth : 0
335
337
336
- - uses : actions/setup-dotnet@v3
338
+ - uses : actions/setup-dotnet@v4
337
339
with :
338
340
dotnet-version : " 8.0.x"
339
341
340
342
- name : Enable NuGet cache
341
- uses : actions/cache@v3.3.2
343
+ uses : actions/cache@v4.2.3
342
344
with :
343
345
path : ~/.nuget/packages
344
346
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -347,7 +349,7 @@ jobs:
347
349
348
350
- name : Download AssemblyInfo.cs
349
351
id : download
350
- uses : actions/download-artifact@v3
352
+ uses : actions/download-artifact@v4
351
353
with :
352
354
name : assembly-info
353
355
path : src/
@@ -384,9 +386,9 @@ jobs:
384
386
dir -r ~/release
385
387
386
388
- name : Upload CLI
387
- uses : actions/upload-artifact@v3.1 .2
389
+ uses : actions/upload-artifact@v4.6 .2
388
390
with :
389
- name : artifacts
391
+ name : artifacts-cli
390
392
path : ~/release
391
393
retention-days : 7
392
394
@@ -400,7 +402,7 @@ jobs:
400
402
401
403
- name : Upload Nuget
402
404
if : ${{ matrix.os == 'ubuntu-latest' }}
403
- uses : actions/upload-artifact@v3.1 .2
405
+ uses : actions/upload-artifact@v4.6 .2
404
406
with :
405
407
name : nuget
406
408
path : ~/nupkg
@@ -479,18 +481,18 @@ jobs:
479
481
runs-on : windows-latest
480
482
needs : [calc-version]
481
483
env :
482
- SEMVER : ${{ needs.calc-version.outputs.semVer }}
484
+ SEMVER : ${{ needs.calc-version.outputs.SemVer }}
483
485
steps :
484
486
- uses : actions/checkout@v4
485
487
with :
486
488
fetch-depth : 0
487
489
488
- - uses : actions/setup-dotnet@v3
490
+ - uses : actions/setup-dotnet@v4
489
491
with :
490
492
dotnet-version : " 8.0.x"
491
493
492
494
- name : Enable NuGet cache
493
- uses : actions/cache@v3.3.2
495
+ uses : actions/cache@v4.2.3
494
496
with :
495
497
path : ~/.nuget/packages
496
498
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -527,9 +529,9 @@ jobs:
527
529
Get-ChildItem ~\release -Recurse
528
530
529
531
- name : Upload docs
530
- uses : actions/upload-artifact@v3.1 .2
532
+ uses : actions/upload-artifact@v4.6 .2
531
533
with :
532
- name : artifacts
534
+ name : artifacts-docs
533
535
path : ~/release
534
536
retention-days : 7
535
537
@@ -539,22 +541,22 @@ jobs:
539
541
needs : [build, unit-test, integration-test]
540
542
if : ${{ ! ( github.event.inputs.nuget ) && ! ( contains(github.ref, 'refs/heads/main') ) }}
541
543
steps :
542
- - uses : actions/download-artifact@v3
544
+ - uses : actions/download-artifact@v4
543
545
id : download
544
546
545
547
- name : List artifacts
546
548
run : ls -ldR ${{steps.download.outputs.download-path}}/**/*
547
549
548
- - name : Install grp
549
- run : dotnet tool install gpr -g
550
-
551
- - uses : actions/setup-dotnet@v3
550
+ - uses : actions/setup-dotnet@v4
552
551
env :
553
552
NUGET_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
554
553
with :
555
554
dotnet-version : " 8.0.x"
556
555
source-url : https://nuget.pkg.github.com/Project-MONAI/index.json
557
556
557
+ - name : Install grp
558
+ run : dotnet tool install gpr -g
559
+
558
560
- name : Publish to GitHub
559
561
run : gpr push '${{ steps.download.outputs.download-path }}/nuget/*.nupkg' --repository ${{ github.repository }} -k ${{ secrets.GITHUB_TOKEN }}
560
562
@@ -563,30 +565,30 @@ jobs:
563
565
runs-on : ubuntu-latest
564
566
needs : [calc-version, unit-test, docs, integration-test, analyze]
565
567
env :
566
- SEMVER : ${{ needs.calc-version.outputs.semVer }}
567
- PRERELEASELABEL : ${{ needs.calc-version.outputs.preReleaseLabel }}
568
- MAJORMINORPATCH : ${{ needs.calc-version.outputs.majorMinorPatch }}
568
+ SEMVER : ${{ needs.calc-version.outputs.SemVer }}
569
+ PRERELEASELABEL : ${{ needs.calc-version.outputs.PreReleaseLabel }}
570
+ MAJORMINORPATCH : ${{ needs.calc-version.outputs.MajorMinorPatch }}
569
571
570
572
steps :
571
573
- uses : actions/checkout@v4
572
574
with :
573
575
fetch-depth : 0
574
576
575
- - uses : actions/download-artifact@v3
577
+ - uses : actions/download-artifact@v4
576
578
id : download
577
579
578
580
- name : List artifacts
579
581
run : ls -ldR ${{steps.download.outputs.download-path}}/**/*
580
-
581
- - name : Install grp
582
- run : dotnet tool install gpr -g
583
582
584
- - uses : actions/setup-dotnet@v3
583
+ - uses : actions/setup-dotnet@v4
585
584
env :
586
585
NUGET_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
587
586
with :
588
587
dotnet-version : " 8.0.x"
589
588
source-url : https://nuget.pkg.github.com/Project-MONAI/index.json
589
+
590
+ - name : Install grp
591
+ run : dotnet tool install gpr -g
590
592
591
593
- name : Publish to GitHub
592
594
run : gpr push '${{ steps.download.outputs.download-path }}/nuget/*.nupkg' --repository ${{ github.repository }} -k ${{ secrets.GITHUB_TOKEN }}
@@ -617,37 +619,52 @@ jobs:
617
619
publish_branch : docs
618
620
619
621
- name : Install GitReleaseManager
620
- uses : gittools/actions/gitreleasemanager/setup@v0.10.2
622
+ uses : gittools/actions/gitreleasemanager/setup@v3.1.11
621
623
with :
622
- versionSpec : " 0.13.x "
624
+ versionSpec : ' 0.18.x '
623
625
624
626
- name : Create release with GitReleaseManager
625
- uses : gittools/actions/gitreleasemanager/create@v0.10.2
627
+ uses : gittools/actions/gitreleasemanager/create@v3.1.11
626
628
with :
627
629
token : ${{ secrets.GITHUB_TOKEN }}
628
630
owner : ${{ steps.repo.outputs._0 }}
629
631
repository : ${{ steps.repo.outputs._1 }}
630
632
milestone : ${{ env.MAJORMINORPATCH }}
631
633
name : " Release v${{ env.MAJORMINORPATCH }}"
632
634
assets : |
633
- artifacts/mig-cli-${{ env.SEMVER }}-linux-x64.zip
634
- artifacts/mig-cli-${{ env.SEMVER }}-win-x64.zip
635
- artifacts/mig-docs-${{ env.SEMVER }}.zip
635
+ artifacts-cli /mig-cli-${{ env.SEMVER }}-linux-x64.zip
636
+ artifacts-cli /mig-cli-${{ env.SEMVER }}-win-x64.zip
637
+ artifacts-docs /mig-docs-${{ env.SEMVER }}.zip
636
638
637
639
- name : Publish release with GitReleaseManager
638
- uses : gittools/actions/gitreleasemanager/publish@v0.10.2
640
+ uses : gittools/actions/gitreleasemanager/publish@v3.1.11
639
641
if : ${{ contains(github.ref, 'refs/heads/main') }}
640
642
with :
641
643
token : ${{ secrets.GITHUB_TOKEN }}
642
644
owner : ${{ steps.repo.outputs._0 }}
643
645
repository : ${{ steps.repo.outputs._1 }}
644
- tagName : ${{ env.MAJORMINORPATCH }}
646
+ milestone : ${{ env.MAJORMINORPATCH }}
645
647
646
648
- name : Close release with GitReleaseManager
647
- uses : gittools/actions/gitreleasemanager/close@v0.10.2
649
+ uses : gittools/actions/gitreleasemanager/close@v3.1.11
648
650
if : ${{ contains(github.ref, 'refs/heads/main') }}
649
651
with :
650
652
token : ${{ secrets.GITHUB_TOKEN }}
651
653
owner : ${{ steps.repo.outputs._0 }}
652
654
repository : ${{ steps.repo.outputs._1 }}
653
655
milestone : ${{ env.MAJORMINORPATCH }}
656
+
657
+ - name : Unzip docs
658
+ if : ${{ contains(github.ref, 'refs/heads/main') }}
659
+ run : |
660
+ mkdir userguide
661
+ unzip artifacts-docs/mig-docs-${{ env.SEMVER }}.zip -d userguide/
662
+ ls -lR userguide/
663
+
664
+ - name : Deploy Docs
665
+ uses : peaceiris/actions-gh-pages@v3
666
+ if : ${{ contains(github.ref, 'refs/heads/main') }}
667
+ with :
668
+ github_token : ${{ secrets.GITHUB_TOKEN }}
669
+ publish_dir : userguide/
670
+ publish_branch : docs
0 commit comments