Skip to content

Commit 66280f4

Browse files
authored
Update nugetGallery.yml
1 parent ab27141 commit 66280f4

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/nugetGallery.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,15 @@ jobs:
1616

1717
- name: Build solution and generate NuGet package
1818
run: |
19-
cd src\netstandard
20-
dotnet pack -c Release -o out
21-
19+
cd src\netstandard\
20+
dotnet pack -c Release -o out /p:Version="${{ secrets.PACKAGE_VERSION }}.${{ github.run_number }}"
2221
- name: Install NuGet client
23-
uses: warrenbuckley/Setup-Nuget@v1
24-
25-
- name: Push generated package to NuGet gallery
26-
run: |
27-
cd src\netstandard
28-
dotnet nuget push .\out\*.nupkg --skip-duplicate -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_TOKEN }} -n true
22+
uses: nuget/setup-nuget@v1
2923

3024
- name: Add private GitHub registry to NuGet
3125
run: nuget sources add -name "GPR" -Source https://nuget.pkg.github.com/Code-Sharp/index.json -Username Code-Sharp -Password ${{ secrets.GITHUB_TOKEN }}
3226

3327
- name: Push generated package to GitHub registry
3428
run: |
35-
cd src\netstandard
36-
nuget push .\out\*.nupkg -Source "GPR" -SkipDuplicate
29+
cd src\netstandard\
30+
nuget push .\out\*.nupkg -SkipDuplicate -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NUGET_TOKEN }} -NoSymbols

0 commit comments

Comments
 (0)