@@ -37,30 +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 }}
40
+ preReleaseLabel : ${{ steps.gitversion.outputs.PreReleaseLabel }}
41
+ majorMinorPatch : ${{ steps.gitversion.outputs.MajorMinorPatch }}
42
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
55
-
56
- - name : Install GitVersion
57
- uses :
gittools/actions/gitversion/[email protected]
53
+ - name : Setup GitVersion
54
+ uses :
gittools/actions/gitversion/[email protected]
58
55
with :
59
- versionSpec : ' 6.x'
56
+ versionSpec : ' 6.0. x'
60
57
61
58
- name : Determine Version
62
59
id : gitversion
63
- uses : gittools/actions/gitversion/execute@v2.0.1
60
+ uses : gittools/actions/gitversion/execute@v3.1.11
64
61
with :
65
62
useConfigFile : true
66
63
updateAssemblyInfo : true
71
68
run : cat src/AssemblyInfo.cs
72
69
73
70
- name : Upload AssemblyInfo
74
- uses : actions/upload-artifact@v3.1 .2
71
+ uses : actions/upload-artifact@v4.6 .2
75
72
if : always()
76
73
with :
77
74
name : assembly-info
@@ -91,20 +88,20 @@ jobs:
91
88
with :
92
89
fetch-depth : 0
93
90
94
- - uses : actions/setup-dotnet@v3
91
+ - uses : actions/setup-dotnet@v4
95
92
with :
96
93
dotnet-version : " 8.0.x"
97
94
98
95
- name : Enable NuGet cache
99
- uses : actions/cache@v3.3.2
96
+ uses : actions/cache@v4.2.3
100
97
with :
101
98
path : ~/.nuget/packages
102
99
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
103
100
restore-keys : |
104
101
${{ runner.os }}-nuget
105
102
106
103
- name : Initialize CodeQL
107
- uses : github/codeql-action/init@v2
104
+ uses : github/codeql-action/init@v3
108
105
with :
109
106
languages : csharp
110
107
@@ -117,7 +114,7 @@ jobs:
117
114
working-directory : ./src
118
115
119
116
- name : Perform CodeQL Analysis
120
- uses : github/codeql-action/analyze@v2
117
+ uses : github/codeql-action/analyze@v3
121
118
122
119
analyze :
123
120
runs-on : ubuntu-latest
@@ -132,7 +129,7 @@ jobs:
132
129
with :
133
130
fetch-depth : 0
134
131
135
- - uses : actions/setup-dotnet@v3
132
+ - uses : actions/setup-dotnet@v4
136
133
with :
137
134
dotnet-version : " 8.0.x"
138
135
@@ -146,7 +143,7 @@ jobs:
146
143
cache : yes
147
144
148
145
- name : Enable NuGet cache
149
- uses : actions/cache@v3.3.2
146
+ uses : actions/cache@v4.2.3
150
147
with :
151
148
path : ~/.nuget/packages
152
149
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -189,17 +186,17 @@ jobs:
189
186
- 27017:27017
190
187
steps :
191
188
- name : Set up JDK 17
192
- uses : actions/setup-java@v3
189
+ uses : actions/setup-java@v4
193
190
with :
194
191
distribution : zulu
195
192
java-version : ' 17'
196
193
197
- - uses : actions/setup-dotnet@v3
194
+ - uses : actions/setup-dotnet@v4
198
195
with :
199
196
dotnet-version : " 8.0.x"
200
197
201
198
- name : Enable NuGet cache
202
- uses : actions/cache@v3.3.2
199
+ uses : actions/cache@v4.2.3
203
200
with :
204
201
path : ~/.nuget/packages
205
202
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -273,12 +270,12 @@ jobs:
273
270
with :
274
271
fetch-depth : 0
275
272
276
- - uses : actions/setup-dotnet@v3
273
+ - uses : actions/setup-dotnet@v4
277
274
with :
278
275
dotnet-version : " 8.0.x"
279
276
280
277
- name : Enable NuGet cache
281
- uses : actions/cache@v3.3.2
278
+ uses : actions/cache@v4.2.3
282
279
with :
283
280
path : ~/.nuget/packages
284
281
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -300,10 +297,10 @@ jobs:
300
297
popd
301
298
302
299
- name : Upload Integration Test Results
303
- uses : actions/upload-artifact@v3.1 .2
300
+ uses : actions/upload-artifact@v4.6 .2
304
301
if : always()
305
302
with :
306
- name : integration-${{ matrix.feature }}
303
+ name : integration-${{ matrix.feature }}-${{ matrix.database }}
307
304
path : |
308
305
${{ github.workspace }}/LivingDoc.html
309
306
${{ github.workspace }}/services.log
@@ -316,8 +313,8 @@ jobs:
316
313
env :
317
314
NUGETVER : ${{ needs.calc-version.outputs.nuGetVersionV2 }}
318
315
SEMVER : ${{ needs.calc-version.outputs.semVer }}
319
- PRERELEASELABEL : ${{ needs.calc-version.outputs.preReleaseLabel }}
320
- MAJORMINORPATCH : ${{ needs.calc-version.outputs.majorMinorPatch }}
316
+ PRERELEASELABEL : ${{ needs.calc-version.outputs.PreReleaseLabel }}
317
+ MAJORMINORPATCH : ${{ needs.calc-version.outputs.MajorMinorPatch }}
321
318
strategy :
322
319
matrix :
323
320
os : [ubuntu-latest]
@@ -338,12 +335,12 @@ jobs:
338
335
with :
339
336
fetch-depth : 0
340
337
341
- - uses : actions/setup-dotnet@v3
338
+ - uses : actions/setup-dotnet@v4
342
339
with :
343
340
dotnet-version : " 8.0.x"
344
341
345
342
- name : Enable NuGet cache
346
- uses : actions/cache@v3.3.2
343
+ uses : actions/cache@v4.2.3
347
344
with :
348
345
path : ~/.nuget/packages
349
346
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -352,7 +349,7 @@ jobs:
352
349
353
350
- name : Download AssemblyInfo.cs
354
351
id : download
355
- uses : actions/download-artifact@v3
352
+ uses : actions/download-artifact@v4
356
353
with :
357
354
name : assembly-info
358
355
path : src/
@@ -389,9 +386,9 @@ jobs:
389
386
dir -r ~/release
390
387
391
388
- name : Upload CLI
392
- uses : actions/upload-artifact@v3.1 .2
389
+ uses : actions/upload-artifact@v4.6 .2
393
390
with :
394
- name : artifacts
391
+ name : artifacts-cli
395
392
path : ~/release
396
393
retention-days : 7
397
394
@@ -405,7 +402,7 @@ jobs:
405
402
406
403
- name : Upload Nuget
407
404
if : ${{ matrix.os == 'ubuntu-latest' }}
408
- uses : actions/upload-artifact@v3.1 .2
405
+ uses : actions/upload-artifact@v4.6 .2
409
406
with :
410
407
name : nuget
411
408
path : ~/nupkg
@@ -484,18 +481,18 @@ jobs:
484
481
runs-on : windows-latest
485
482
needs : [calc-version]
486
483
env :
487
- SEMVER : ${{ needs.calc-version.outputs.semVer }}
484
+ SEMVER : ${{ needs.calc-version.outputs.SemVer }}
488
485
steps :
489
486
- uses : actions/checkout@v4
490
487
with :
491
488
fetch-depth : 0
492
489
493
- - uses : actions/setup-dotnet@v3
490
+ - uses : actions/setup-dotnet@v4
494
491
with :
495
492
dotnet-version : " 8.0.x"
496
493
497
494
- name : Enable NuGet cache
498
- uses : actions/cache@v3.3.2
495
+ uses : actions/cache@v4.2.3
499
496
with :
500
497
path : ~/.nuget/packages
501
498
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -532,9 +529,9 @@ jobs:
532
529
Get-ChildItem ~\release -Recurse
533
530
534
531
- name : Upload docs
535
- uses : actions/upload-artifact@v3.1 .2
532
+ uses : actions/upload-artifact@v4.6 .2
536
533
with :
537
- name : artifacts
534
+ name : artifacts-docs
538
535
path : ~/release
539
536
retention-days : 7
540
537
@@ -544,7 +541,7 @@ jobs:
544
541
needs : [build, unit-test, integration-test]
545
542
if : ${{ ! ( github.event.inputs.nuget ) && ! ( contains(github.ref, 'refs/heads/main') ) }}
546
543
steps :
547
- - uses : actions/download-artifact@v3
544
+ - uses : actions/download-artifact@v4
548
545
id : download
549
546
550
547
- name : List artifacts
@@ -553,7 +550,7 @@ jobs:
553
550
- name : Install grp
554
551
run : dotnet tool install gpr -g
555
552
556
- - uses : actions/setup-dotnet@v3
553
+ - uses : actions/setup-dotnet@v4
557
554
env :
558
555
NUGET_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
559
556
with :
@@ -568,16 +565,16 @@ jobs:
568
565
runs-on : ubuntu-latest
569
566
needs : [calc-version, unit-test, docs, integration-test, analyze]
570
567
env :
571
- SEMVER : ${{ needs.calc-version.outputs.semVer }}
572
- PRERELEASELABEL : ${{ needs.calc-version.outputs.preReleaseLabel }}
573
- 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 }}
574
571
575
572
steps :
576
573
- uses : actions/checkout@v4
577
574
with :
578
575
fetch-depth : 0
579
576
580
- - uses : actions/download-artifact@v3
577
+ - uses : actions/download-artifact@v4
581
578
id : download
582
579
583
580
- name : List artifacts
@@ -586,7 +583,7 @@ jobs:
586
583
- name : Install grp
587
584
run : dotnet tool install gpr -g
588
585
589
- - uses : actions/setup-dotnet@v3
586
+ - uses : actions/setup-dotnet@v4
590
587
env :
591
588
NUGET_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
592
589
with :
@@ -607,34 +604,34 @@ jobs:
607
604
msg : ${{ github.repository }}
608
605
609
606
- name : Install GitReleaseManager
610
- uses : gittools/actions/gitreleasemanager/setup@v0.10.2
607
+ uses : gittools/actions/gitreleasemanager/setup@v3.1.11
611
608
with :
612
- versionSpec : " 0.13.x "
609
+ versionSpec : ' 0.18.x '
613
610
614
611
- name : Create release with GitReleaseManager
615
- uses : gittools/actions/gitreleasemanager/create@v0.10.2
612
+ uses : gittools/actions/gitreleasemanager/create@v3.1.11
616
613
with :
617
614
token : ${{ secrets.GITHUB_TOKEN }}
618
615
owner : ${{ steps.repo.outputs._0 }}
619
616
repository : ${{ steps.repo.outputs._1 }}
620
617
milestone : ${{ env.MAJORMINORPATCH }}
621
618
name : " Release v${{ env.MAJORMINORPATCH }}"
622
619
assets : |
623
- artifacts/mig-cli-${{ env.SEMVER }}-linux-x64.zip
624
- artifacts/mig-cli-${{ env.SEMVER }}-win-x64.zip
625
- artifacts/mig-docs-${{ env.SEMVER }}.zip
620
+ artifacts-cli /mig-cli-${{ env.SEMVER }}-linux-x64.zip
621
+ artifacts-cli /mig-cli-${{ env.SEMVER }}-win-x64.zip
622
+ artifacts-docs /mig-docs-${{ env.SEMVER }}.zip
626
623
627
624
- name : Publish release with GitReleaseManager
628
- uses : gittools/actions/gitreleasemanager/publish@v0.10.2
625
+ uses : gittools/actions/gitreleasemanager/publish@v3.1.11
629
626
if : ${{ contains(github.ref, 'refs/heads/main') }}
630
627
with :
631
628
token : ${{ secrets.GITHUB_TOKEN }}
632
629
owner : ${{ steps.repo.outputs._0 }}
633
630
repository : ${{ steps.repo.outputs._1 }}
634
- tagName : ${{ env.MAJORMINORPATCH }}
631
+ milestone : ${{ env.MAJORMINORPATCH }}
635
632
636
633
- name : Close release with GitReleaseManager
637
- uses : gittools/actions/gitreleasemanager/close@v0.10.2
634
+ uses : gittools/actions/gitreleasemanager/close@v3.1.11
638
635
if : ${{ contains(github.ref, 'refs/heads/main') }}
639
636
with :
640
637
token : ${{ secrets.GITHUB_TOKEN }}
@@ -646,7 +643,7 @@ jobs:
646
643
if : ${{ contains(github.ref, 'refs/heads/main') }}
647
644
run : |
648
645
mkdir userguide
649
- unzip artifacts/mig-docs-${{ env.SEMVER }}.zip -d userguide/
646
+ unzip artifacts-docs /mig-docs-${{ env.SEMVER }}.zip -d userguide/
650
647
ls -lR userguide/
651
648
652
649
- name : Deploy Docs
0 commit comments