File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed
Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 1- # Credits due: by https://dusted.codes/github-actions-for-dotnet-core-nuget-packages#branch-and-pull-request-trigger
2-
31name : Release
4-
52on :
63 release :
74 types :
@@ -28,13 +25,15 @@ jobs:
2825 - name : Setup .NET Core
2926 uses : actions/setup-dotnet@v1
3027 with :
31- dotnet-version : 5.0.x
28+ dotnet-version : 6.0.x
29+ include-prerelease : True
3230 - name : Create Release NuGet package
3331 run : |
3432 arrTag=(${GITHUB_REF//\// })
3533 VERSION="${arrTag[2]}"
3634 echo Version: $VERSION
3735 CONFIGURATION=$([ "${VERSION:0:2}" == "v1" ] && echo "ReleaseV1" || echo "Release")
36+ CONFIGURATION=$([ "${VERSION:0:2}" == "v2" ] && echo "ReleaseV2" || echo $CONFIGURATION)
3837 VERSION="${VERSION//v}"
3938 echo Clean Version: $VERSION
4039 echo Configuration: $CONFIGURATION
4544 do
4645 dotnet nuget push $f --source $GITHUB_FEED --api-key ${{github.token}} --skip-duplicate --no-symbols true
4746 done
48- - name : Push to NuGet Feed
49- run : |
50- for f in ./nupkg/*.nupkg
51- do
52- dotnet nuget push $f --source $NUGET_FEED --skip-duplicate --api-key $NUGET_KEY
53- done
47+ # - name: Push to NuGet Feed
48+ # run: |
49+ # for f in ./nupkg/*.nupkg
50+ # do
51+ # dotnet nuget push $f --source $NUGET_FEED --skip-duplicate --api-key $NUGET_KEY
52+ # done
You can’t perform that action at this time.
0 commit comments