@@ -13,44 +13,42 @@ jobs:
1313 - name : Setup .NET Core
1414 uses : actions/setup-dotnet@v1
1515 with :
16- dotnet-version : 3.1.200
16+ dotnet-version : 3.1.401
1717 - name : Build Reason
1818 run : " echo ref: ${{github.ref}} event: ${{github.event_name}}"
1919 - name : Build Version
20- id : version
21- uses : thefringeninja/action- minver@2.0.0-preview1
22- with :
23- tag-prefix : v
20+ run : |
21+ dotnet tool install --global minver-cli --version 2.3.0
22+ version=$(minver --tag-prefix v)
23+ echo "::set-env name=MINVERVERSIONOVERRIDE::$version"
2424 - name : Build
2525 run : dotnet build --configuration Release Exceptionless.Net.ClientsOnly.sln
2626 - name : Run Tests
27- run : dotnet test --configuration Release --results-directory artifacts -- no-build --logger:trx Exceptionless.Net.ClientsOnly.sln
27+ run : dotnet test --configuration Release --no-build Exceptionless.Net.ClientsOnly.sln
2828 - name : Package
2929 if : github.event_name != 'pull_request'
3030 run : dotnet pack --configuration Release --no-build Exceptionless.Net.ClientsOnly.sln
31+ - name : Install GitHub Package Tool
32+ if : github.event_name != 'pull_request'
33+ run : dotnet tool install gpr -g
3134 - name : Publish CI Packages
3235 shell : bash
36+ if : github.event_name != 'pull_request'
3337 run : |
3438 for package in $(find -name "*.nupkg" | grep "minver" -v); do
3539 echo "${0##*/}": Pushing $package...
36-
37- # GPR
38- # workaround for GPR push issue
39- curl -sX PUT -u "exceptionless:${{ secrets.GITHUB_TOKEN }}" -F package=@$package https://nuget.pkg.github.com/exceptionless/
40-
41- # feedz (remove once GPR supports anonymous access)
42- dotnet nuget push $package --source https://f.feedz.io/exceptionless/exceptionless/nuget --api-key ${{ secrets.FEEDZ_KEY }}
40+
41+ # GitHub
42+ gpr push $package -k ${{ secrets.GITHUB_TOKEN }} || true
43+
44+ # Feedz (remove once GitHub supports anonymous access)
45+ dotnet nuget push $package --source https://f.feedz.io/exceptionless/exceptionless/nuget --api-key ${{ secrets.FEEDZ_KEY }} --skip-duplicate
4346 done
4447 - name : Publish Release Packages
4548 shell : bash
4649 if : startsWith(github.ref, 'refs/tags/v')
4750 run : |
4851 for package in $(find -name "*.nupkg" | grep "minver" -v); do
4952 echo "${0##*/}": Pushing $package...
50- dotnet nuget push $package --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }}
53+ dotnet nuget push $package --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} --skip-duplicate
5154 done
52- - name : Upload Artifacts
53- uses : actions/upload-artifact@v1.0.0
54- with :
55- name : artifacts
56- path : artifacts
0 commit comments