File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - wip
7-
7+ tags :
8+ - " *"
89env :
910 DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
1011 DOTNET_CLI_TELEMETRY_OPTOUT : true
@@ -22,24 +23,26 @@ jobs:
2223 fetch-depth : 0
2324
2425 - name : Install GitVersion
25- uses : gittools/actions/gitversion/setup@v0
26+ uses : gittools/actions/gitversion/setup@v3.2.1
2627 with :
27- versionSpec : ' 5.x '
28+ versionSpec : " 6.3.x "
2829 - name : GitVersion - Determine Version
29- uses : gittools/actions/gitversion/execute@v0
30+ uses : gittools/actions/gitversion/execute@v3.2.1
3031 id : gitversion
3132
3233 - name : Setup .NET
33- uses : actions/setup-dotnet@v3
34+ uses : actions/setup-dotnet@v4
3435 with :
35- dotnet-version : 8 .0.x
36+ dotnet-version : 10 .0.x
3637 - name : Restore
3738 run : dotnet restore --verbosity normal
3839 - name : Build
3940 run : dotnet build --configuration Release --no-restore --verbosity normal
4041 - name : Test
4142 run : dotnet test --configuration Release --no-restore --no-build --verbosity normal
4243 - name : Pack
44+ if : startsWith(github.ref, 'refs/tags/')
4345 run : dotnet pack -c Release --no-restore --no-build -v normal -p:Version='${{ steps.gitversion.outputs.SemVer }}'
4446 - name : NuGet push
45- run : dotnet nuget push ./Shockky/bin/Release/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s ${{ env.NUGET_FEED }}
47+ if : startsWith(github.ref, 'refs/tags/')
48+ run : dotnet nuget push ./artifacts/package/release/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s ${{ env.NUGET_FEED }}
You can’t perform that action at this time.
0 commit comments