@@ -13,44 +13,42 @@ jobs:
13
13
- name : Setup .NET Core
14
14
uses : actions/setup-dotnet@v1
15
15
with :
16
- dotnet-version : 3.1.200
16
+ dotnet-version : 3.1.401
17
17
- name : Build Reason
18
18
run : " echo ref: ${{github.ref}} event: ${{github.event_name}}"
19
19
- 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"
24
24
- name : Build
25
25
run : dotnet build --configuration Release Exceptionless.Net.ClientsOnly.sln
26
26
- 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
28
28
- name : Package
29
29
if : github.event_name != 'pull_request'
30
30
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
31
34
- name : Publish CI Packages
32
35
shell : bash
36
+ if : github.event_name != 'pull_request'
33
37
run : |
34
38
for package in $(find -name "*.nupkg" | grep "minver" -v); do
35
39
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
43
46
done
44
47
- name : Publish Release Packages
45
48
shell : bash
46
49
if : startsWith(github.ref, 'refs/tags/v')
47
50
run : |
48
51
for package in $(find -name "*.nupkg" | grep "minver" -v); do
49
52
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
51
54
done
52
- - name : Upload Artifacts
53
-
54
- with :
55
- name : artifacts
56
- path : artifacts
0 commit comments