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
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- 259+ 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- 267+ 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 }}
0 commit comments