-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/timheuer/dotnet-workflow
- Loading branch information
Showing
2 changed files
with
3 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,12 +45,6 @@ jobs: | |
working-directory: src | ||
run: dotnet pack -o ${{ env.PACKAGE_PATH }} | ||
|
||
- name: Setup NuGet | ||
uses: NuGet/[email protected] | ||
with: | ||
nuget-api-key: ${{ secrets.NUGET_KEY }} | ||
nuget-version: latest | ||
|
||
- name: Get certificate | ||
id: cert_file | ||
uses: timheuer/base64-to-file@v1 | ||
|
@@ -60,7 +54,7 @@ jobs: | |
|
||
# Sign the package | ||
- name: Sign NuGet Package | ||
run: nuget sign "**/*.nupkg" -CertificatePath ${{ steps.cert_file.outputs.filePath }} -CertificatePassword "${{ secrets.CERT_PWD }}" -Timestamper http://timestamp.digicert.com -NonInteractive | ||
run: dotnet nuget sign "**/*.nupkg" --certificate-path ${{ steps.cert_file.outputs.filePath }} --certificate-password "${{ secrets.CERT_PWD }}" --timestamper http://timestamp.digicert.com | ||
|
||
- name: Publish NuGet package | ||
run: dotnet nuget push "**/*.nupkg" -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters