Test #12. #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test-win-signing | |
on: | |
push | |
jobs: | |
test_sign: | |
if: github.repository == 'MusculoskeletalAtlasProject/mapclient' | |
name: Test sign executable | |
runs-on: windows-2019 | |
steps: | |
- name: list stuff | |
shell: cmd | |
run: | | |
echo "==========" | |
dir "C:\Program Files (x86)\" | |
echo "==========" | |
dir "C:\Program Files (x86)\Windows Kits\" | |
echo "==========" | |
dir "C:\Program Files (x86)\Windows Kits\10\" | |
echo "==========" | |
dir "C:\Program Files (x86)\Windows Kits\10\bin\" | |
echo "==========" | |
dir "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\" | |
echo "==========" | |
- name: save secret to file | |
shell: bash | |
run: | | |
echo $EV_CERTIFICATE_PFX_BASE64 | base64 -d -o ./ev_certificate.pfx | |
ls -l | |
env: | |
EV_CERTIFICATE_PFX_BASE64: ${{ secrets.WIN_EV_CERTIFICATE_PFX_BASE64 }} | |
- name: Sign application | |
shell: bash | |
run: | | |
powershell -Command "(new-object net.webclient).DownloadString('https://github.com/MusculoskeletalAtlasProject/mapclient/releases/download/v0.20.1.rc2/MAP-Client-0.20.1.exe')" > MAP-Client-0.20.1.exe | |
ls -l | |
Signtool sign /? | |
- name: Clean up | |
shell: bash | |
run: | | |
rm ev_certificate.pfx.base64 ev_certificate.pfx |