Skip to content

Commit dd83546

Browse files
attempt separate signed asset
1 parent a5e7649 commit dd83546

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

Diff for: .github/workflows/build.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ env:
7575
artifacts:
7676
- path: '*Windows_64bit.exe'
7777
name: Windows_X86-64_interactive_installer
78+
- path: '*Windows_64bit_signed.exe'
79+
name: Windows_X86-64_interactive_installer_signed
7880
- path: '*Windows_64bit.msi'
7981
name: Windows_X86-64_MSI
8082
- path: '*Windows_64bit.zip'
@@ -450,12 +452,19 @@ jobs:
450452
run: |
451453
"${{ 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 }}
452454
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+
454463
- name: Upload artifacts with signed EXE
455464
uses: actions/upload-artifact@v3
456465
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 }}
459468

460469
# This step is needed because the self hosted runner does not delete files automatically
461470
- name: Clean up artifacts

0 commit comments

Comments
 (0)