ci(build): refine windows sign

pull/11216/head
Andelf 2024-04-10 01:03:37 +08:00
parent a324d845b2
commit 5362aa258c
1 changed files with 25 additions and 3 deletions

View File

@ -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' }}