CI: skip signing Windows binaries for pull requests

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2024-11-23 11:53:45 +01:00
parent 502e3658e0
commit 0f9314f900
2 changed files with 19 additions and 8 deletions

View File

@@ -109,6 +109,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Azure login - name: Azure login
if: ${{ github.event_name != 'pull_request' }}
uses: azure/login@v2 uses: azure/login@v2
with: with:
client-id: ${{ secrets.AZURE_CLIENT_ID }} client-id: ${{ secrets.AZURE_CLIENT_ID }}
@@ -152,13 +153,16 @@ jobs:
Remove-Item Env:\GOARCH Remove-Item Env:\GOARCH
- name: Sign binaries - name: Sign binaries
if: ${{ github.event_name != 'pull_request' }}
uses: azure/trusted-signing-action@v0.5.0 uses: azure/trusted-signing-action@v0.5.0
with: with:
endpoint: https://eus.codesigning.azure.net/ endpoint: https://eus.codesigning.azure.net/
trusted-signing-account-name: nicola trusted-signing-account-name: nicola
certificate-profile-name: SFTPGo certificate-profile-name: SFTPGo
files: ${{ github.workspace }}\sftpgo.exe,${{ github.workspace }}\arm64\sftpgo.exe,${{ github.workspace }}\x86\sftpgo.exe files: |
files-folder-filter: exe,dll ${{ github.workspace }}\sftpgo.exe
${{ github.workspace }}\arm64\sftpgo.exe
${{ github.workspace }}\x86\sftpgo.exe
file-digest: SHA256 file-digest: SHA256
timestamp-rfc3161: http://timestamp.acs.microsoft.com timestamp-rfc3161: http://timestamp.acs.microsoft.com
timestamp-digest: SHA256 timestamp-digest: SHA256
@@ -243,13 +247,16 @@ jobs:
iscc .\windows-installer\sftpgo.iss iscc .\windows-installer\sftpgo.iss
- name: Sign installers - name: Sign installers
if: ${{ github.event_name != 'pull_request' }}
uses: azure/trusted-signing-action@v0.5.0 uses: azure/trusted-signing-action@v0.5.0
with: with:
endpoint: https://eus.codesigning.azure.net/ endpoint: https://eus.codesigning.azure.net/
trusted-signing-account-name: nicola trusted-signing-account-name: nicola
certificate-profile-name: SFTPGo certificate-profile-name: SFTPGo
files: ${{ github.workspace }}\sftpgo_windows_x86_64.exe,${{ github.workspace }}\sftpgo_windows_arm64.exe,${{ github.workspace }}\sftpgo_windows_x86.exe files: |
files-folder-filter: exe,dll ${{ github.workspace }}\sftpgo_windows_x86_64.exe
${{ github.workspace }}\sftpgo_windows_arm64.exe
${{ github.workspace }}\sftpgo_windows_x86.exe
file-digest: SHA256 file-digest: SHA256
timestamp-rfc3161: http://timestamp.acs.microsoft.com timestamp-rfc3161: http://timestamp.acs.microsoft.com
timestamp-digest: SHA256 timestamp-digest: SHA256

View File

@@ -96,8 +96,10 @@ jobs:
endpoint: https://eus.codesigning.azure.net/ endpoint: https://eus.codesigning.azure.net/
trusted-signing-account-name: nicola trusted-signing-account-name: nicola
certificate-profile-name: SFTPGo certificate-profile-name: SFTPGo
files: ${{ github.workspace }}\sftpgo.exe,${{ github.workspace }}\arm64\sftpgo.exe,${{ github.workspace }}\x86\sftpgo.exe files: |
files-folder-filter: exe,dll ${{ github.workspace }}\sftpgo.exe
${{ github.workspace }}\arm64\sftpgo.exe
${{ github.workspace }}\x86\sftpgo.exe
file-digest: SHA256 file-digest: SHA256
timestamp-rfc3161: http://timestamp.acs.microsoft.com timestamp-rfc3161: http://timestamp.acs.microsoft.com
timestamp-digest: SHA256 timestamp-digest: SHA256
@@ -156,8 +158,10 @@ jobs:
endpoint: https://eus.codesigning.azure.net/ endpoint: https://eus.codesigning.azure.net/
trusted-signing-account-name: nicola trusted-signing-account-name: nicola
certificate-profile-name: SFTPGo certificate-profile-name: SFTPGo
files: ${{ github.workspace }}\sftpgo_windows_x86_64.exe,${{ github.workspace }}\sftpgo_windows_arm64.exe,${{ github.workspace }}\sftpgo_windows_x86.exe files: |
files-folder-filter: exe,dll ${{ github.workspace }}\sftpgo_windows_x86_64.exe
${{ github.workspace }}\sftpgo_windows_arm64.exe
${{ github.workspace }}\sftpgo_windows_x86.exe
file-digest: SHA256 file-digest: SHA256
timestamp-rfc3161: http://timestamp.acs.microsoft.com timestamp-rfc3161: http://timestamp.acs.microsoft.com
timestamp-digest: SHA256 timestamp-digest: SHA256