Skip to content

Commit ffaf720

Browse files
authored
Relese 2.0.4 (#327)
1 parent c08dcc0 commit ffaf720

File tree

88 files changed

+78935
-14598
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+78935
-14598
lines changed

.github/workflows/ci.yml

100755100644
+34-21
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
uses: actions/checkout@v3
4040
with:
4141
fetch-depth: 0
42-
- uses: actions/setup-dotnet@v3
42+
- uses: actions/setup-dotnet@v4
4343
with:
4444
dotnet-version: "8.0.x"
4545

@@ -52,7 +52,7 @@ jobs:
5252
tools: licensefinder
5353

5454
- name: Enable NuGet cache
55-
uses: actions/cache@v4.0.2
55+
uses: actions/cache@v4.2.3
5656
with:
5757
path: ~/.nuget/packages
5858
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -100,12 +100,12 @@ jobs:
100100
distribution: 'zulu'
101101
java-version: '17'
102102

103-
- uses: actions/setup-dotnet@v3
103+
- uses: actions/setup-dotnet@v4
104104
with:
105105
dotnet-version: "8.0.x"
106106

107107
- name: Enable NuGet cache
108-
uses: actions/cache@v4.0.2
108+
uses: actions/cache@v4.2.3
109109
with:
110110
path: ~/.nuget/packages
111111
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -160,7 +160,7 @@ jobs:
160160
run: dotnet sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
161161
working-directory: ./src
162162

163-
- uses: codecov/codecov-action@v3
163+
- uses: codecov/codecov-action@v4.4.1
164164
with:
165165
token: ${{ secrets.CODECOV_TOKEN }}
166166
directory: "src/"
@@ -193,12 +193,12 @@ jobs:
193193
with:
194194
fetch-depth: 0
195195

196-
- uses: actions/setup-dotnet@v3
196+
- uses: actions/setup-dotnet@v4
197197
with:
198198
dotnet-version: "8.0.x"
199199

200200
- name: Enable NuGet cache
201-
uses: actions/cache@v4.0.2
201+
uses: actions/cache@v4.2.3
202202
with:
203203
path: ~/.nuget/packages
204204
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -209,12 +209,14 @@ jobs:
209209
run: dotnet restore
210210
working-directory: ./src
211211

212-
- name: Install GitVersion
213-
run: dotnet tool install --global GitVersion.Tool
212+
- name: Setup GitVersion
213+
uses: gittools/actions/gitversion/[email protected]
214+
with:
215+
versionSpec: '6.0.5'
214216

215217
- name: Determine Version
216218
id: gitversion
217-
uses: gittools/actions/gitversion/execute@v1.1.1
219+
uses: gittools/actions/gitversion/execute@v3.1.11
218220

219221
with:
220222
useConfigFile: true
@@ -224,13 +226,24 @@ jobs:
224226
- name: Build Solution
225227
run: dotnet build -c ${{ env.BUILD_CONFIG }} --nologo ${{ env.SOLUTION }}
226228
working-directory: ./src
229+
230+
- name: Package (Official Release)
231+
env:
232+
PACKAGEDIR: '${{ github.workspace }}/release/'
233+
if: ${{ github.event.inputs.nuget && matrix.os == 'ubuntu-latest' }}
234+
run: |
235+
mkdir $PACKAGEDIR
236+
dotnet pack --no-build -c ${{ env.BUILD_CONFIG }} -o $PACKAGEDIR -p:PackageVersion=${{ steps.gitversion.outputs.majorMinorPatch }}
237+
ls -lR $PACKAGEDIR
238+
working-directory: ./src
239+
227240
- name: Package
228241
env:
229242
PACKAGEDIR: '${{ github.workspace }}/release/'
230-
if: ${{ matrix.os == 'ubuntu-latest' }}
243+
if: ${{ ! ( github.event.inputs.nuget ) && matrix.os == 'ubuntu-latest' }}
231244
run: |
232245
mkdir $PACKAGEDIR
233-
dotnet pack --no-build -c ${{ env.BUILD_CONFIG }} -o $PACKAGEDIR -p:PackageVersion=${{ steps.gitversion.outputs.nuGetVersionV2 }}
246+
dotnet pack --no-build -c ${{ env.BUILD_CONFIG }} -o $PACKAGEDIR -p:PackageVersion=${{ steps.gitversion.outputs.majorMinorPatch }}-${{ steps.gitversion.outputs.EscapedBranchName }}.${{ steps.gitversion.outputs.CommitsSinceVersionSource }}
234247
ls -lR $PACKAGEDIR
235248
working-directory: ./src
236249

@@ -243,15 +256,15 @@ jobs:
243256

244257
- name: Upload Nuget
245258
if: ${{ matrix.os == 'ubuntu-latest' }}
246-
uses: actions/[email protected].1
259+
uses: actions/[email protected].3
247260
with:
248261
name: nuget
249262
path: ${{ github.workspace }}/release/*.nupkg
250263
retention-days: 30
251264

252265
- name: Upload Zipped Plug-ins
253266
if: ${{ matrix.os == 'ubuntu-latest' }}
254-
uses: actions/[email protected].1
267+
uses: actions/[email protected].3
255268
with:
256269
name: plug-ins
257270
path: ${{ github.workspace }}/src/Plugins/release/*.zip
@@ -297,7 +310,7 @@ jobs:
297310
- name: Install grp
298311
run: dotnet tool install gpr -g
299312

300-
- uses: actions/setup-dotnet@v3
313+
- uses: actions/setup-dotnet@v4
301314
env:
302315
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
303316
with:
@@ -313,7 +326,7 @@ jobs:
313326
runs-on: ubuntu-latest
314327
needs: [build, unit-test]
315328
env:
316-
MAJORMINORPATCH: ${{ needs.build.outputs.majorMinorPatch }}
329+
MAJORMINORPATCH: ${{ needs.build.outputs.MajorMinorPatch }}
317330

318331
steps:
319332
- uses: actions/checkout@v3
@@ -337,12 +350,12 @@ jobs:
337350
msg: ${{ github.repository }}
338351

339352
- name: Install GitReleaseManager
340-
uses: gittools/actions/gitreleasemanager/setup@v0.17.0
353+
uses: gittools/actions/gitreleasemanager/setup@v3.1.11
341354
with:
342-
versionSpec: "0.13.x"
355+
versionSpec: '0.18.x'
343356

344357
- name: Create release with GitReleaseManager
345-
uses: gittools/actions/gitreleasemanager/create@v0.17.0
358+
uses: gittools/actions/gitreleasemanager/create@v3.1.11
346359
with:
347360
token: ${{ secrets.GITHUB_TOKEN }}
348361
owner: ${{ steps.repo.outputs._0 }}
@@ -354,7 +367,7 @@ jobs:
354367
355368
- name: Publish release with GitReleaseManager
356369
if: ${{ contains(github.ref, 'refs/heads/main') }}
357-
uses: gittools/actions/gitreleasemanager/publish@v0.17.0
370+
uses: gittools/actions/gitreleasemanager/publish@v3.1.11
358371
with:
359372
token: ${{ secrets.GITHUB_TOKEN }}
360373
owner: ${{ steps.repo.outputs._0 }}
@@ -363,7 +376,7 @@ jobs:
363376

364377
- name: Close release with GitReleaseManager
365378
if: ${{ contains(github.ref, 'refs/heads/main') }}
366-
uses: gittools/actions/gitreleasemanager/close@v0.17.0
379+
uses: gittools/actions/gitreleasemanager/close@v3.1.11
367380
with:
368381
token: ${{ secrets.GITHUB_TOKEN }}
369382
owner: ${{ steps.repo.outputs._0 }}

.licenserc.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ header:
22
license:
33
spdx-id: Apache-2.0
44
copyright-owner: MONAI Consortium
5-
copyright-year: '2021-2024'
5+
copyright-year: '2021-2025'
6+
67
paths:
78
- 'src'
89

.vscode/settings.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

GitVersion.yml

+10-18
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,56 @@
11
# SPDX-FileCopyrightText: © 2022 MONAI Consortium
22
# SPDX-License-Identifier: Apache License 2.0
33

4+
workflow: GitHubFlow/v1
45
assembly-versioning-scheme: MajorMinorPatchTag
6+
assembly-file-versioning-scheme: MajorMinorPatchTag
57
mode: ContinuousDeployment
8+
strategies:
9+
- ConfiguredNextVersion
610
branches:
711
main:
8-
tag: ''
12+
label: ''
913
mode: ContinuousDelivery
1014
increment: Patch
11-
prevent-increment-of-merged-branch-version: true
12-
track-merge-target: false
1315
source-branches: [ 'release' ]
1416
tracks-release-branches: false
1517
is-release-branch: false
16-
is-mainline: true
1718
pre-release-weight: 55000
1819
release:
19-
tag: rc
20+
label: rc
2021
regex: ^releases?[/-]
2122
mode: ContinuousDeployment
2223
increment: None
23-
prevent-increment-of-merged-branch-version: true
24-
track-merge-target: false
2524
source-branches: [ 'main', 'release' ]
2625
tracks-release-branches: false
2726
is-release-branch: true
28-
is-mainline: false
2927
pre-release-weight: 30000
3028
feature:
31-
tag: alpha.{BranchName}
29+
label: alpha.{BranchName}
3230
regex: ^features?[/-]
3331
mode: ContinuousDeployment
3432
increment: Inherit
35-
prevent-increment-of-merged-branch-version: false
36-
track-merge-target: false
3733
source-branches: [ 'main', 'release', 'feature' ]
3834
tracks-release-branches: false
3935
is-release-branch: false
40-
is-mainline: false
4136
pre-release-weight: 30000
4237
pull-request:
43-
tag: pr
38+
label: pr
4439
regex: ^(pull|pull\-requests|pr)[/-]
4540
mode: ContinuousDeployment
4641
increment: Inherit
47-
prevent-increment-of-merged-branch-version: false
48-
tag-number-pattern: '[/-](?<number>\d+)[-/]'
49-
track-merge-target: false
42+
label-number-pattern: '[/-](?<number>\d+)[-/]'
5043
source-branches: [ 'main', 'release', 'feature' ]
5144
tracks-release-branches: false
5245
is-release-branch: false
53-
is-mainline: false
5446
pre-release-weight: 30000
5547

5648
ignore:
5749
sha: []
5850
merge-message-formats: {}
59-
next-version: 2.0.0
6051

6152
major-version-bump-message: '\+semver:\s?(breaking|major)'
6253
minor-version-bump-message: '\+semver:\s?(feature|minor)'
6354
patch-version-bump-message: '\+semver:\s?(fix|patch)'
6455
update-build-number: false
56+
next-version: 2.0.4

codecov.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: © 2021-2022 MONAI Consortium
1+
# SPDX-FileCopyrightText: © 2021-2024 MONAI Consortium
22
# SPDX-License-Identifier: Apache License 2.0
33

44
codecov:

0 commit comments

Comments
 (0)