File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,18 @@ jobs:
25
25
- run : dotnet build --verbosity normal
26
26
- run : dotnet test --no-build --verbosity normal
27
27
- run : dotnet pack --no-build --verbosity normal
28
- publish :
28
+ publish-release :
29
29
runs-on : macos-latest
30
30
needs : test
31
- if : github.ref == 'refs/heads/deploy' || startsWith(github.ref, 'refs/tags')
32
- name : Publish NuGet package
31
+ if : startsWith(github.ref, 'refs/tags')
32
+ name : Publish package on nuget.org
33
33
steps :
34
34
- run : dotnet nuget push "**/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key "${{ secrets.NUGET_API_KEY }}"
35
+ publish-prerelease :
36
+ runs-on : macos-latest
37
+ needs : test
38
+ if : github.ref == 'refs/heads/deploy'
39
+ name : Publish package on github.com
40
+ steps :
41
+ - run : dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --name github --username ${{ github.repository_owner }} --password ${{ github.token }} --store-password-in-clear-text
42
+ - run : dotnet nuget push "**/*.nupkg" --source github
You can’t perform that action at this time.
0 commit comments