File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 75
75
artifacts:
76
76
- path: '*Windows_64bit.exe'
77
77
name: Windows_X86-64_interactive_installer
78
+ - path: '*Windows_64bit_signed.exe'
79
+ name: Windows_X86-64_interactive_installer_signed
78
80
- path: '*Windows_64bit.msi'
79
81
name: Windows_X86-64_MSI
80
82
- path: '*Windows_64bit.zip'
@@ -450,12 +452,19 @@ jobs:
450
452
run : |
451
453
"${{ env.SIGNTOOL_PATH }}" sign -d "Arduino IDE" -f ${{ env.INSTALLER_CERT_WINDOWS_CER }} -csp "eToken Base Cryptographic Provider" -k "[{{${{ env.CERT_PASSWORD }}}}]=${{ env.CONTAINER_NAME }}" -fd sha256 -tr http://timestamp.digicert.com -td SHA256 -v ${{ env.ARTIFACT_PATH }}
452
454
453
- # upload signed exe to artifacts overwriting existing
455
+ - name : Rename signed EXE
456
+ shell : bash
457
+ run : |
458
+ BASE_NAME=$(echo "${{ env.ARTIFACT_PATH }}" | sed 's/.exe$//')
459
+ SIGNED_EXE_PATH="${BASE_NAME}_signed.exe"
460
+ mv "${{ env.ARTIFACT_PATH }}" "$SIGNED_EXE_PATH"
461
+ echo "SIGNED_ARTIFACT_PATH=$SIGNED_EXE_PATH" >> $GITHUB_ENV
462
+
454
463
- name : Upload artifacts with signed EXE
455
464
uses : actions/upload-artifact@v3
456
465
with :
457
- name : Windows_X86-64_interactive_installer
458
- path : ${{ env.ARTIFACT_PATH }}
466
+ name : Windows_X86-64_interactive_installer_signed
467
+ path : ${{ env.SIGNED_ARTIFACT_PATH }}
459
468
460
469
# This step is needed because the self hosted runner does not delete files automatically
461
470
- name : Clean up artifacts
You can’t perform that action at this time.
0 commit comments