Skip to content

Commit e969f47

Browse files
download and upload all artifacts in sign-windows
1 parent 259da7e commit e969f47

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/build.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -427,12 +427,13 @@ jobs:
427427
- name: Download artifact
428428
uses: actions/download-artifact@v3
429429
with:
430-
name: Windows_X86-64_interactive_installer
430+
name: ${{ env.JOB_TRANSFER_ARTIFACT }}
431+
path: ${{ env.BUILD_ARTIFACTS_PATH }}
431432

432433
- name: Save artifact path to variable
433434
run: |
434435
# Find the artifact ending with 'Windows_64bit.exe' in the specified download directory
435-
ARTIFACT_PATH=$(find . -name "*Windows_64bit.exe")
436+
ARTIFACT_PATH=$(find ${{ env.BUILD_ARTIFACTS_PATH }} -name "*Windows_64bit.exe")
436437
echo "ARTIFACT_PATH=${ARTIFACT_PATH}" >> $GITHUB_ENV
437438
438439
- name: Save Win signing certificate to file
@@ -447,15 +448,15 @@ jobs:
447448
"${{ 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 }}"
448449
449450
# upload signed exe to artifacts overwriting existing
450-
- name: Upload signed EXE
451+
- name: Upload artifacts with signed EXE
451452
uses: actions/upload-artifact@v3
452453
with:
453-
name: Windows_X86-64_interactive_installer
454+
name: ${{ env.JOB_TRANSFER_ARTIFACT }}
454455
path: ${{ env.ARTIFACT_PATH }}
455456

456457
# This step is needed because the self hosted runner does not delete files automatically
457-
- name: Clean up EXE
458-
run: rm ${{ env.ARTIFACT_PATH }}
458+
- name: Clean up artifacts
459+
run: rm -rf ${{ env.ARTIFACT_PATH }}
459460

460461
merge-channel-files:
461462
needs:

0 commit comments

Comments
 (0)