Skip to content

Commit eb50152

Browse files
authored
Update nuget.yml
1 parent 00a2cdf commit eb50152

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/nuget.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
uses: actions/setup-dotnet@v1
1717
with:
1818
dotnet-version: 3.1.101
19+
- name: Download latest NuGet (cross-platform)
20+
uses: olegtarasov/download-nuget@v1
1921
- name: Remove .sqlproj
2022
run: dotnet sln DockerizedTesting.sln remove Examples/ExampleDatabase*/*.*proj
2123
- name: Install dependencies
@@ -24,5 +26,9 @@ jobs:
2426
run: dotnet build --configuration Release --no-restore
2527
- name: Test
2628
run: dotnet test --no-restore --verbosity normal
29+
- name: Pack
30+
run: dotnet pack --no-restore --verbosity normal -o ./nuget
2731
- name: Publish
28-
run: dotnet publish --no-restore --verbosity normal
32+
run: nuget.exe push -ApiKey "$NUGET_KEY" -SkipDuplicate -NonInteractive -Source "https://www.nuget.org/" "nuget/"
33+
env:
34+
NUGET_KEY: ${{ secrets.NUGET_KEY }}

0 commit comments

Comments
 (0)