From 8ee52b9c630e78fc764754493bec618a1756711f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Carden=CC=83a?= <35935591+luisecm@users.noreply.github.com> Date: Mon, 6 May 2024 10:20:39 -0600 Subject: [PATCH] chore(build): fix build windows issue on no media found --- .github/workflows/build-release-windows.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-release-windows.yml b/.github/workflows/build-release-windows.yml index 808e07d2840..a5ba7f93733 100644 --- a/.github/workflows/build-release-windows.yml +++ b/.github/workflows/build-release-windows.yml @@ -24,7 +24,7 @@ jobs: - name: Setup Certificate run: | - echo "${{ secrets.SM_CLIENT_CERT_FILE_B64 }}" | base64 --decode > /d/certificate.p12 + echo "${{ secrets.SM_CLIENT_CERT_FILE_B64 }}" | base64 --decode > C:\certificate.p12 shell: bash - name: Set variables @@ -36,7 +36,7 @@ jobs: echo "CERTIFICATE_NAME=gt-certificate" >> $GITHUB_OUTPUT echo "SM_HOST=${{ secrets.SM_HOST }}" >> "$GITHUB_ENV" echo "SM_API_KEY=${{ secrets.SM_API_KEY }}" >> "$GITHUB_ENV" - echo "SM_CLIENT_CERT_FILE=D:\\certificate.p12" >> "$GITHUB_ENV" + echo "SM_CLIENT_CERT_FILE=C:\\certificate.p12" >> "$GITHUB_ENV" echo "SM_CLIENT_CERT_PASSWORD=${{ secrets.SM_CLIENT_CERT_PASSWORD }}" >> "$GITHUB_ENV" echo "C:\Program Files (x86)\Windows Kits\10\App Certification Kit" >> $GITHUB_PATH echo "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools" >> $GITHUB_PATH @@ -86,6 +86,9 @@ jobs: run: | signtool.exe sign /sha1 ${{ secrets.SM_CODE_SIGNING_CERT_SHA1_HASH }} /tr http://timestamp.digicert.com /td SHA256 /fd SHA256 "./target/wix/*.msi" + - name: Delete cert file + run: Remove-Item -Force C:\certificate.p12 + - name: Github Release uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/')