Skip to content

Commit

Permalink
Windows CI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Oct 24, 2024
1 parent ae4bc0e commit 7485f06
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
SENTRY_AUTH_TOKEN: "${{ secrets.SENTRY_AUTH_TOKEN }}"
VERSION: "${{ env.version }}"

- name: Upload Windows APP to Artifacts
- name: Upload Windows artifacts
uses: actions/upload-artifact@v4
with:
name: windows
Expand All @@ -132,6 +132,7 @@ jobs:
ls -ltr "build/windows/${{inputs.arch}}/runner"
ls -ltr "build/windows/${{inputs.arch}}/runner/Release"
mv "dist/${{ env.APP_VERSION }}/lantern-${{ env.APP_VERSION }}-windows-setup.exe" lantern-installer${{inputs.installer-suffix}}.exe
mv "dist/${{ env.APP_VERSION }}/lantern-${{ env.APP_VERSION }}-windows.msix" lantern-installer${{inputs.installer-suffix}}.msix
- name: Sign EXE with Azure Code Signing
uses: getlantern/trusted-signing-action@main
Expand All @@ -143,7 +144,7 @@ jobs:
code-signing-account-name: code-signing
certificate-profile-name: Lantern
files-folder: ${{ github.workspace }}\
files-folder-filter: exe
files-folder-filter: exe,dll,msix
file-digest: SHA256
timestamp-rfc3161: http://timestamp.acs.microsoft.com
timestamp-digest: SHA256
Expand All @@ -155,6 +156,14 @@ jobs:
path: |
lantern-installer${{inputs.installer-suffix}}.exe
- name: Upload msix artifact
uses: actions/upload-artifact@v4
with:
name: windows${{inputs.build-suffix}}-installer-msix
path: |
lantern-installer${{inputs.installer-suffix}}.msix
upload-windows:
needs: build-windows
permissions:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ jobs:
with:
name: windows64-installer-signed

- name: Download the windows msix
uses: actions/download-artifact@v4
with:
name: windows${{inputs.build-suffix}}-installer-msix

- name: Grant private modules access
run: git config --global url."https://${{ secrets.CI_PRIVATE_REPOS_GH_TOKEN }}:[email protected]/".insteadOf "https://github.com/"

Expand All @@ -137,6 +142,7 @@ jobs:
- name: Rename builds
run: |
diff lantern-installer-x64.exe ${{ env.prefix }}-64-bit.exe || mv -f lantern-installer-x64.exe ${{ env.prefix }}-64-bit.exe
diff lantern-installer-x64.msix ${{ env.prefix }}-64-bit.msix || mv -f lantern-installer-x64.msix ${{ env.prefix }}-64-bit.msix
- name: Prepare sha256 sums
run: |
Expand Down

0 comments on commit 7485f06

Please sign in to comment.