File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 15
15
name : Run tests and create NuGet package
16
16
outputs :
17
17
version : ${{ steps.dotnet-pack.outputs.version }}
18
+ nupkg-filename : ${{ steps.dotnet-pack.outputs.nupkg-filename }}
18
19
steps :
19
20
- uses : actions/checkout@v2
20
21
with :
38
39
if : startsWith(github.ref, 'refs/tags')
39
40
name : Publish package on nuget.org
40
41
steps :
41
- - run : dotnet nuget push "**/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key "${{ secrets.NUGET_API_KEY }}"
42
+ - uses : actions/download-artifact@v2
43
+ with :
44
+ name : nuget-package-macos-latest
45
+ - run : dotnet nuget push ${{ needs.package.outputs.nupkg-filename }} --source https://api.nuget.org/v3/index.json --api-key "${{ secrets.NUGET_API_KEY }}"
42
46
publish-prerelease :
43
47
runs-on : macos-latest
44
48
needs : package
51
55
repo-token : ${{ github.token }}
52
56
tag : ${{ needs.package.outputs.version }}
53
57
- 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
54
- - run : dotnet nuget push "**/*.nupkg" --source github
58
+ - uses : actions/download-artifact@v2
59
+ with :
60
+ name : nuget-package-macos-latest
61
+ - run : dotnet nuget push ${{ needs.package.outputs.nupkg-filename }} --source github
You can’t perform that action at this time.
0 commit comments