Skip to content

Commit d1ba64b

Browse files
committed
Always run "dotnet pack"
This ensures that the NuGet package is valid
1 parent 7a6dfb2 commit d1ba64b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,19 @@ jobs:
1212
matrix:
1313
os: [ macos-latest, ubuntu-latest, windows-latest ]
1414
runs-on: ${{ matrix.os }}
15+
name: Run tests and create NuGet package
1516
steps:
1617
- uses: actions/checkout@v2
1718
with:
1819
fetch-depth: 0
1920
- run: dotnet restore --verbosity normal
2021
- run: dotnet build --verbosity normal
2122
- run: dotnet test --no-build --verbosity normal
23+
- run: dotnet pack --no-build --verbosity normal
2224
publish:
2325
runs-on: macos-latest
2426
needs: test
2527
if: github.ref == 'refs/heads/deploy'
28+
name: Publish NuGet package
2629
steps:
27-
- run: dotnet pack --no-build --verbosity normal
2830
- run: dotnet nuget push "**/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key "${{ secrets.NUGET_API_KEY }}"

0 commit comments

Comments
 (0)