Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 33 additions & 4 deletions .github/workflows/build-desktop-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,27 @@ jobs:
retry ./gradlew :composeApp:packageExe :composeApp:packageMsi
shell: bash

# Flatten .exe + .msi into a single directory so the uploaded artifact
# zip contains them at the root (no `exe/` and `msi/` subdirectories).
# SignPath's artifact-configuration XML uses simple `*.exe` / `*.msi`
# globs at zip root; nested paths cause "Expected path to match exactly
# 1 item, but found 0" because upload-artifact@v4 strips the longest
# common prefix only, so multi-source paths preserve their tail dirs.
- name: Stage Windows installers for upload
run: |
set -euo pipefail
mkdir -p windows-staging
cp composeApp/build/compose/binaries/main/exe/*.exe windows-staging/
cp composeApp/build/compose/binaries/main/msi/*.msi windows-staging/
ls -la windows-staging/
shell: bash

- name: Upload Windows installers
id: upload-windows
uses: actions/upload-artifact@v4
with:
name: windows-installers
path: |
composeApp/build/compose/binaries/main/exe/*.exe
composeApp/build/compose/binaries/main/msi/*.msi
path: windows-staging/*
if-no-files-found: error
retention-days: 30
compression-level: 6
Expand All @@ -82,6 +95,7 @@ jobs:
permissions:
id-token: write
contents: read
actions: write

steps:
# Fail loudly if any SignPath config is missing instead of letting the
Expand Down Expand Up @@ -120,7 +134,7 @@ jobs:
organization-id: ${{ secrets.SIGNPATH_ORGANIZATION_ID }}
project-slug: 'GitHub-Store'
signing-policy-slug: ${{ vars.SIGNPATH_SIGNING_POLICY_SLUG }}
artifact-configuration-slug: 'initial-version'
artifact-configuration-slug: 'initial'
github-artifact-id: ${{ needs.build-windows.outputs.windows-artifact-id }}
wait-for-completion: true
output-artifact-directory: signed-artifacts
Expand All @@ -134,6 +148,21 @@ jobs:
retention-days: 30
compression-level: 0

# Remove the unsigned upload so only the SignPath-signed installers are
# downloadable from the run page and end up in the draft release.
# Without this, both windows-installers (unsigned) and
# windows-installers-signed coexist as 30-day artifacts.
- name: Delete unsigned Windows artifact
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ARTIFACT_ID: ${{ needs.build-windows.outputs.windows-artifact-id }}
REPO: ${{ github.repository }}
run: |
set -euo pipefail
gh api -X DELETE "repos/${REPO}/actions/artifacts/${ARTIFACT_ID}"
echo "Deleted unsigned artifact id=${ARTIFACT_ID}"
shell: bash

build-macos:
strategy:
matrix:
Expand Down
Loading