Skip to content

Commit

Permalink
Sign the NuGet package again with dotnet sign.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Jun 27, 2024
1 parent 93e590f commit 87d67fe
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 38 deletions.
64 changes: 26 additions & 38 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,25 +191,6 @@ jobs:
run: './build.Magick.NET.cmd ${{ matrix.quantumName }} "${{ matrix.platformName }}" Release'
working-directory: build/windows

- name: 'Azure CLI login with federated credential'
if: github.event_name != 'pull_request'
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Sign binaries
if: github.event_name != 'pull_request'
uses: azure/[email protected]
with:
endpoint: https://eus.codesigning.azure.net/
trusted-signing-account-name: ImageMagick
certificate-profile-name: ImageMagick
files-folder: 'src/Magick.NET/bin'
files-folder-filter: dll
files-folder-recurse: true

- name: Set NuGet version
run: ./set.version.ps1
working-directory: publish
Expand All @@ -218,6 +199,19 @@ jobs:
run: './publish.cmd ${{ matrix.quantumName }} "${{ matrix.platformName }}"'
working-directory: publish

- name: Azure CLI login with federated credential
if: github.event_name != 'pull_request'
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Sign NuGet package
if: ${{ github.event_name != 'pull_request' }}
run: sign code trusted-signing --trusted-signing-account ImageMagick --trusted-signing-certificate-profile ImageMagick --trusted-signing-endpoint https://eus.codesigning.azure.net --verbosity information *.nupkg
working-directory: publish/output

- name: Upload library
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -260,25 +254,6 @@ jobs:
run: './build.Magick.NET.cmd "Q8" "Any CPU" Release'
working-directory: build/windows

- name: 'Azure CLI login with federated credential'
if: github.event_name != 'pull_request'
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Sign binaries
if: github.event_name != 'pull_request'
uses: azure/[email protected]
with:
endpoint: https://eus.codesigning.azure.net/
trusted-signing-account-name: ImageMagick
certificate-profile-name: ImageMagick
files-folder: 'src/Magick.NET.${{ matrix.libraryName }}/bin'
files-folder-filter: dll
files-folder-recurse: true

- name: Set NuGet version
run: ./set.version.ps1
working-directory: publish
Expand All @@ -287,6 +262,19 @@ jobs:
run: './publish.library.cmd "Magick.NET.${{ matrix.libraryName }}"'
working-directory: publish

- name: Azure CLI login with federated credential
if: github.event_name != 'pull_request'
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Sign NuGet package
if: ${{ github.event_name != 'pull_request' }}
run: sign code trusted-signing --trusted-signing-account ImageMagick --trusted-signing-certificate-profile ImageMagick --trusted-signing-endpoint https://eus.codesigning.azure.net --verbosity information *.nupkg
working-directory: publish/output

- name: Upload library
uses: actions/upload-artifact@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions build/windows/install.dependencies.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ if %errorlevel% neq 0 exit /b %errorlevel%

..\..\tools\windows\gs1000w32.exe /S
if %errorlevel% neq 0 exit /b %errorlevel%

dotnet tool install --global sign --version 0.9.1-beta.24325.5
if %errorlevel% neq 0 exit /b %errorlevel%

0 comments on commit 87d67fe

Please sign in to comment.