From 5362aa258c277a5d13d0065ccaf515ce7d0d84b7 Mon Sep 17 00:00:00 2001 From: Andelf Date: Wed, 10 Apr 2024 01:03:37 +0800 Subject: [PATCH] ci(build): refine windows sign --- .github/workflows/build-desktop-release.yml | 28 ++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-desktop-release.yml b/.github/workflows/build-desktop-release.yml index 700580f97..d31c4d281 100644 --- a/.github/workflows/build-desktop-release.yml +++ b/.github/workflows/build-desktop-release.yml @@ -363,10 +363,20 @@ jobs: # CODE_SIGN_CERTIFICATE_FILE: ../codesign.pfx # CODE_SIGN_CERTIFICATE_PASSWORD: ${{ secrets.CODE_SIGN_CERTIFICATE_PASSWORD }} - - name: Save Artifact + - name: Save Artifact for Code Signing run: | mkdir builds mv static\out\make\squirrel.windows\x64\*.exe builds\Logseq-win-x64-${{ steps.ref.outputs.version }}.exe + + - name: Upload Artifact for Code Signing + uses: actions/upload-artifact@v3 + with: + name: logseq-win64-unsigned-builds + path: builds + + - name: Save Artifact + run: | + rm builds\*.exe mv static\out\make\squirrel.windows\x64\*.nupkg builds\Logseq-win-x64-${{ steps.ref.outputs.version }}-full.nupkg mv static\out\make\zip\win32\x64\*.zip builds\Logseq-win-x64-${{ steps.ref.outputs.version }}.zip mv static\out\make\squirrel.windows\x64\RELEASES builds\RELEASES @@ -551,7 +561,7 @@ jobs: - name: Download Windows Artifact uses: actions/download-artifact@v3 with: - name: logseq-win64-builds + name: logseq-win64-unsigned-builds path: ./builds - name: Sign Windows Executable @@ -602,6 +612,12 @@ jobs: name: logseq-win64-signed-builds path: ./ + - name: Download The Windows Artifact + uses: actions/download-artifact@v3 + with: + name: logseq-win64-builds + path: ./ + - name: Download Android Artifacts uses: actions/download-artifact@v3 with: @@ -669,12 +685,18 @@ jobs: name: logseq-linux-arm64-builds path: ./ - - name: Download The Windows Artifact + - name: Download The Windows Artifact (Signed) uses: actions/download-artifact@v3 with: name: logseq-win64-signed-builds path: ./ + - name: Download The Windows Artifact + uses: actions/download-artifact@v3 + with: + name: logseq-win64-builds + path: ./ + - name: Download Android Artifacts uses: actions/download-artifact@v3 if: ${{ github.event_name == 'schedule' || github.event.inputs.build-android == 'true' }}