File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed
Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -15,20 +15,18 @@ jobs:
1515 uses : actions/checkout@v1
1616 - name : Setup .NET Core
1717 uses : actions/setup-dotnet@v1
18- with :
19- source-url : https://nuget.pkg.github.com/prometheusclientnet/index.json
20- env :
21- NUGET_AUTH_TOKEN : ${{secrets.GH_DEPLOY_KEY}}
2218 - name : Restore
2319 run : dotnet restore
2420 - name : Build
2521 run : dotnet build --no-restore -c Release
2622 - name : Pack artifacts
2723 run : dotnet pack src/Prometheus.Client.AspNetCore -c Release --no-build --version-suffix dev-$(date +%s) -o artifacts/
28- - name : Publish artifacts
24+ - name : Upload artifacts
2925 uses : actions/upload-artifact@v2
3026 with :
3127 name : nupkg
3228 path : artifacts/*
3329 - name : Publish to GitHub
34- run : dotnet nuget push "artifacts/*.nupkg" --skip-duplicate --no-symbols true
30+ run : |
31+ dotnet tool install -g gpr --no-cache -v q
32+ gpr push "artifacts/*.nupkg" -k ${{ secrets.GH_DEPLOY_KEY }} || true
Original file line number Diff line number Diff line change 1- name : " CI "
1+ name : CI
22
33on :
44 push :
55 tags :
6- - ' [34].[0-9]+.[0-9]+ '
6+ - ' v* '
77
88jobs :
99 build :
@@ -17,10 +17,10 @@ jobs:
1717 run : dotnet build -c Release
1818 - name : Pack artifacts
1919 run : dotnet pack src/Prometheus.Client.AspNetCore -c Release --no-build -o artifacts/
20- - name : Publish artifacts
20+ - name : Upload artifacts
2121 uses : actions/upload-artifact@v2
2222 with :
2323 name : nupkg
2424 path : artifacts/*
2525 - name : Publish to NuGet
26- run : dotnet nuget push "artifacts/*.nupkg" --api-key ${{ secrets.NUGET_DEPLOY_KEY }} --source https://api.nuget.org/v3/index.json
26+ run : dotnet nuget push "artifacts/*.nupkg" -k ${{ secrets.NUGET_DEPLOY_KEY }} -s https://api.nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments