Skip to content

Commit

Permalink
ci(build): refine windows sign
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Apr 9, 2024
1 parent a324d84 commit 5362aa2
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/build-desktop-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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' }}
Expand Down

0 comments on commit 5362aa2

Please sign in to comment.