Skip to content
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

Sign every build #3933

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Sign every build
  • Loading branch information
astrowander committed Dec 28, 2024
commit ca051e99b33342210dc8d47710649cb198c82429
30 changes: 30 additions & 0 deletions .github/workflows/build-test-distribute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,36 @@ 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: Delete unsigned NuGet package
uses: geekyeggo/delete-artifact@v5
with:
name: DistributivesNuGet*
failOnError: false

- name: Sign NuGet package with certificate
run: |
jsign --storetype ETOKEN --storepass "${{ secrets.WINDOWS_SIGNTOOL_KC_PARAM_TOKEN_PASSWORD }}" -tsaurl http://timestamp.digicert.com MeshLib.nupkg
nuget verify -All -Verbosity detailed MeshLib.nupkg

- name: Upload Signed NuGet Package
uses: actions/upload-artifact@v4
with:
name: DistributivesNuGet
path: MeshLib.nupkg
retention-days: 1

upload-distributions:
if: ${{ !cancelled() && needs.config.outputs.upload_artifacts == 'true' }}
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/sign-upload-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag

sign-upload:
upload:
timeout-minutes: 10
needs: setup
runs-on: [windows-x64-codesign]
Expand All @@ -35,11 +35,6 @@ jobs:
--repo $env:GITHUB_REPOSITORY `
--pattern "MeshLib_${{needs.setup.outputs.version_tag}}.nupkg"

- name: Sign NuGet package with certificate
run: |
jsign --storetype ETOKEN --storepass "${{ secrets.WINDOWS_SIGNTOOL_KC_PARAM_TOKEN_PASSWORD }}" -tsaurl http://timestamp.digicert.com MeshLib_${{needs.setup.outputs.version_tag}}.nupkg
nuget verify -All -Verbosity detailed MeshLib_${{needs.setup.outputs.version_tag}}.nupkg

- name: Upload signed NuGet package
run: |
nuget push MeshLib_${{needs.setup.outputs.version_tag}}.nupkg ${{ secrets.NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json
Loading