@@ -30,13 +30,19 @@ jobs:
3030 uses : actions/checkout@v2
3131 - run : git fetch --unshallow
3232 - name : Setup .NET Core 3.1
33- uses : actions/setup-dotnet@v1
33+ uses : actions/setup-dotnet@v3
3434 with :
3535 dotnet-version : 3.1.100
36+ source-url : https://nuget.pkg.github.com/shaprcode-it/index.json
37+ env :
38+ NUGET_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
3639 - name : Setup .NET Core 2.2
37- uses : actions/setup-dotnet@v1
40+ uses : actions/setup-dotnet@v3
3841 with :
3942 dotnet-version : 2.2.402
43+ source-url : https://nuget.pkg.github.com/shaprcode-it/index.json
44+ env :
45+ NUGET_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
4046 - name : Install GitVersion
4147 uses : gittools/actions/gitversion/setup@v0
4248 with :
@@ -71,23 +77,20 @@ jobs:
7177 uses : actions/download-artifact@v1
7278 with :
7379 name : nupkg
74- - name : Push to GitHub Feed
75- run : |
76- for f in ./nupkg/*.nupkg
77- do
78- echo $f
79- curl --silent --show-error --fail -vX PUT -u "$GITHUB_USER:$GITHUB_TOKEN" -F package=@$f $GITHUB_FEED
80- done
80+
81+ - name : Publish the package to GitHub
82+ run : dotnet nuget push ./nupkg/*.nupkg
8183 deploy :
8284 needs : build
8385 if : github.event_name == 'release' && startsWith(github.ref, 'refs/heads/v')
8486 runs-on : ubuntu-latest
8587 steps :
8688 - uses : actions/checkout@v2
8789 - name : Setup .NET Core
88- uses : actions/setup-dotnet@v1
90+ uses : actions/setup-dotnet@v3
8991 with :
90- dotnet-version : 5.0.100
92+ dotnet-version : 7.x
93+ source-url : https://nuget.pkg.github.com/shaprcode-it/index.json
9194 - name : Create Release NuGet package
9295 run : |
9396 arrTag=(${GITHUB_REF//\// })
0 commit comments