diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index edfc8fd..9f9dc4a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,6 +44,13 @@ jobs: --output ..\publish ` /p:AssemblyName=${{ env.ASSEMBLY_NAME }} + - name: Build NuGet package + run: | + dotnet pack ` + --no-build ` + --configuration Release ` + --output ..\publish ` + - uses: dlemstra/code-sign-action@v1 with: certificate: '${{ secrets.CERTIFICATE }}' @@ -52,6 +59,7 @@ jobs: recursive: true files: | ${{ env.ASSEMBLY_NAME }}.exe + ${{ env.ASSEMBLY_NAME }}.nupkg description: "Keeper's Windows Credential Manager Utility" - name: Create checksum @@ -75,15 +83,9 @@ jobs: gh release upload "${{ github.ref_name }}" ` --repo "${{ github.repository }}" ` (Get-Item publish\${{ env.ASSEMBLY_NAME }}.exe).FullName ` + (Get-Item publish\${{ env.ASSEMBLY_NAME }}.nupkg).FullName ` (Get-Item publish\checksums.txt).FullName - - name: Build NuGet package - run: | - dotnet pack ` - --no-build ` - --configuration Release ` - --output ..\nuget ` - - name: Push NuGet package env: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}