@@ -68,31 +68,37 @@ jobs:
6868 run : |
6969 mkdir ${GITHUB_WORKSPACE}/artifacts
7070
71+ - name : Find Alephuim-*.exe file
72+ if : startsWith(matrix.os, 'windows')
73+ id : get-exefile
74+ run : echo "exefile=$(find . -name 'Alephium-*.exe')" >> $GITHUB_OUTPUT
75+ shell : bash
76+
7177 - name : Sign Artifact with CodeSignTool
7278 uses : sslcom/esigner-codesign@develop
7379 if : startsWith(matrix.os, 'windows')
7480 with :
75- # Sign and timestamp code object.
7681 command : sign
77- # SSL.com account username
7882 username : ${{ secrets.ES_USERNAME }}
79- # SSL.com account password.
8083 password : ${{ secrets.ES_PASSWORD }}
81- # Credential ID for signing certificate.
8284 credential_id : ${{ secrets.CREDENTIAL_ID }}
83- # OAuth TOTP Secret (https://www.ssl.com/how-to/automate-esigner-ev-code-signing)
8485 totp_secret : ${{ secrets.ES_TOTP_SECRET }}
85- # Path of code object to be signed. (DLL, JAR, EXE, MSI files vb... )
86- file_path : ' apps/desktop-wallet/Alephium*.exe'
87- # Directory where signed code object(s) will be written.
86+ file_path : ${{ steps.get-exefile.outputs.exefile }}
8887 output_path : ${GITHUB_WORKSPACE}/artifacts
89- # Scan code before sign
9088 malware_block : false
91- # Environment Name, For Production 'PROD' or For Staging 'TEST'
9289 environment_name : PROD
9390
94- - name : Upload Signed Files
91+ - name : Find Alephium-*.exe signed file
92+ if : startsWith(matrix.os, 'windows')
93+ id : get-signedfile
94+ run : |
95+ echo "file=$(find ${GITHUB_WORKSPACE}/artifacts -name 'Alephium-*.exe')" >> $GITHUB_OUTPUT
96+ echo "filename=$(find ${GITHUB_WORKSPACE}/artifacts -name 'Alephium-*.exe' | xargs basename)" >> $GITHUB_OUTPUT
97+ shell : bash
98+
99+ - name : Upload Signed Alephuim-*.exe
95100 uses : actions/upload-artifact@v2
101+ if : startsWith(matrix.os, 'windows')
96102 with :
97- name : Alephium- signed.exe
98- path : ./artifacts/Alephium*.exe
103+ name : signed-${{ steps.get-signedfile.outputs.filename }}
104+ path : ${{ steps.get-signedfile.outputs.file }}
0 commit comments