Skip to content

Commit

Permalink
Reorder workflow and sign nupkg
Browse files Browse the repository at this point in the history
  • Loading branch information
EndlessTrax committed Jul 1, 2024
1 parent 8ea6f3a commit a66615c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'
Expand All @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit a66615c

Please sign in to comment.