Skip to content

Commit 62cc8aa

Browse files
authored
Update dotnet-core-desktop.yml
1 parent f39e85f commit 62cc8aa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/dotnet-core-desktop.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,15 @@ jobs:
7373
Where-Object { !$_.Name.Contains('preview') } |
7474
ForEach-Object { dotnet nuget push $_ --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} }
7575
shell: pwsh
76+
77+
- name: Setup NuGet.exe for use with actions
78+
uses: NuGet/[email protected]
79+
80+
- name: Add private GitHub registry to NuGet
81+
run: nuget sources add -name "GPR" -Source https://nuget.pkg.github.com/Analogy-LogViewer/index.json -Username Analogy-LogViewer -Password ${{ secrets.GITHUB_TOKEN }}
82+
83+
- name: 'Dotnet NuGet Push to github registry'
84+
run: |
85+
Get-ChildItem .\artifactory -Filter *.nupkg |
86+
Where-Object { !$_.Name.Contains('preview') } |
87+
ForEach-Object { nuget push $_ -Source "GPR" -SkipDuplicate }

0 commit comments

Comments
 (0)