Skip to content

Sign every build #3933

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/build-test-distribute.yml
Original file line number Diff line number Diff line change
@@ -231,6 +231,42 @@ jobs:
name: DistributivesNuGet
path: MeshLib.nupkg
retention-days: 1
sign-nuget:
timeout-minutes: 10
needs: create-nuget-package
runs-on: [windows-x64-codesign]
steps:
- name: Remove old local NuGet packages
run: Remove-Item "MeshLib*.nupkg"

- name: Download NuGet package
uses: actions/download-artifact@v4
with:
pattern: DistributivesNuGet*

- name: List files
run: Get-ChildItem

- name: Delete unsigned NuGet package
uses: geekyeggo/delete-artifact@v5
with:
name: DistributivesNuGet*
failOnError: false

- name: List files
run: Get-ChildItem DistributivesNuGet

- name: Sign NuGet package with certificate
run: |
jsign --storetype ETOKEN --storepass "${{ secrets.WINDOWS_SIGNTOOL_KC_PARAM_TOKEN_PASSWORD }}" -tsaurl http://timestamp.digicert.com DistributivesNuGet/MeshLib.nupkg
nuget verify -All -Verbosity detailed DistributivesNuGet/MeshLib.nupkg
- name: Upload Signed NuGet Package
uses: actions/upload-artifact@v4
with:
name: DistributivesNuGet
path: DistributivesNuGet/MeshLib.nupkg
retention-days: 1

upload-distributions:
if: ${{ !cancelled() && needs.config.outputs.upload_artifacts == 'true' }}
45 changes: 0 additions & 45 deletions .github/workflows/sign-upload-nuget.yml

This file was deleted.