Skip to content

Commit d57efd3

Browse files
committed
Also publish artifacts to workflow
1 parent 5156134 commit d57efd3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/release-nuget.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,18 @@ jobs:
1919
- name: Build Project
2020
run: ./build.ps1
2121
shell: powershell
22+
23+
- uses: actions/upload-artifact@master
24+
with:
25+
name: NugetPackage
26+
path: artifacts
2227

2328
- name: Publish NuGet Package (NuGet.org)
2429
env:
2530
API_KEY: ${{ secrets.NUGET_API_KEY }}
26-
run: dotnet nuget push **/*.nupkg -k ${API_KEY}
31+
run: dotnet nuget push ./artifacts/*.nupkg -k ${API_KEY}
2732

2833
- name: Publish NuGet Package (GitHub)
2934
env:
3035
API_KEY: ${{ secrets.GITHUB_TOKEN }}
31-
run: dotnet nuget push **/*.nupkg -k ${API_KEY} --source "https://nuget.pkg.github.com/redth-org/index.json"
36+
run: dotnet nuget push ./artifacts/*.nupkg -k ${API_KEY} --source "https://nuget.pkg.github.com/redth-org/index.json"

0 commit comments

Comments
 (0)