Skip to content

Commit 4b6fea2

Browse files
authored
chore(ci): build desktop from the unsigned CLI artifact (anomalyco#53313)
1 parent f714e5f commit 4b6fea2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,11 @@ jobs:
348348
if-no-files-found: error
349349

350350
build-electron:
351+
# Desktop packaging re-signs the bundled CLI on macOS and Windows, so it starts from the unsigned build.
351352
needs:
352353
- version
353-
- sign-cli-windows
354-
if: github.repository == 'anomalyco/opencode' && (github.ref_name != 'v2' || needs.version.outputs.release != '')
354+
- build-cli
355+
if: github.repository == 'anomalyco/opencode' && ((github.ref_name == 'v2' && needs.version.outputs.release != '') || github.ref_name == 'beta')
355356
continue-on-error: false
356357
env:
357358
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
@@ -391,7 +392,7 @@ jobs:
391392

392393
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
393394
with:
394-
name: opencode-preview-cli
395+
name: opencode-preview-cli-unsigned
395396
path: packages/cli/dist
396397

397398
- uses: apple-actions/import-codesign-certs@8f3fb608891dd2244cdab3d69cd68c0d37a7fe93 # v2.0.0

0 commit comments

Comments
 (0)