GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(workflows): serialize desktop release uploads (#30978) · koji/opencode@76a81ac

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • publish.yml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/publish.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/publish.yml
+23-6Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@ jobs:
334334
VITE_SENTRY_ENVIRONMENT: ${{ (github.ref_name == 'beta' && 'beta') || 'production' }}
335335
VITE_SENTRY_RELEASE: desktop@${{ needs.version.outputs.version }}
336336

337-
- name: Package and publish
337+
- name: Package
338338
if: needs.version.outputs.release
339-
run: npx electron-builder ${{ matrix.settings.platform_flag }} --publish always --config electron-builder.config.ts
339+
run: npx electron-builder ${{ matrix.settings.platform_flag }} --publish never --config electron-builder.config.ts
340340
working-directory: packages/desktop
341341
timeout-minutes: 60
342342
env:
@@ -356,11 +356,9 @@ jobs:
356356
env:
357357
OPENCODE_CHANNEL: ${{ (github.ref_name == 'beta' && 'beta') || 'prod' }}
358358

359-
- name: Create and upload macOS .app.tar.gz
359+
- name: Create macOS .app.tar.gz
360360
if: runner.os == 'macOS' && needs.version.outputs.release
361361
working-directory: packages/desktop/dist
362-
env:
363-
GH_TOKEN: ${{ steps.committer.outputs.token }}
364362
run: |
365363
if [[ "${{ matrix.settings.target }}" == "x86_64-apple-darwin" ]]; then
366364
APP_DIR="mac"
@@ -378,7 +376,6 @@ jobs:
378376
exit 1
379377
fi
380378
tar -czf "$OUT_NAME" -C "$(dirname "$APP_PATH")" "$(basename "$APP_PATH")"
381-
gh release upload "v${{ needs.version.outputs.version }}" "$OUT_NAME" --clobber --repo "${{ needs.version.outputs.repo }}"
382379
383380
- name: Verify signed Windows Electron artifacts
384381
if: runner.os == 'Windows'
@@ -464,6 +461,13 @@ jobs:
464461
pattern: latest-yml-*
465462
path: /tmp/latest-yml
466463

464+
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
465+
if: needs.version.outputs.release
466+
with:
467+
pattern: opencode-desktop-*
468+
path: /tmp/desktop
469+
merge-multiple: true
470+
467471
- name: Setup git committer
468472
id: committer
469473
uses: ./.github/actions/setup-git-committer
@@ -490,6 +494,19 @@ jobs:
490494
git config --global user.name "opencode"
491495
ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts || true
492496
497+
- name: Upload desktop release assets
498+
if: needs.version.outputs.release
499+
env:
500+
GH_TOKEN: ${{ steps.committer.outputs.token }}
501+
run: |
502+
shopt -s nullglob
503+
files=(/tmp/desktop/*.{exe,blockmap,dmg,zip,AppImage,deb,rpm} /tmp/desktop/*.app.tar.gz)
504+
if (( ${#files[@]} == 0 )); then
505+
echo "No desktop release assets found"
506+
exit 1
507+
fi
508+
gh release upload "v${{ needs.version.outputs.version }}" "${files[@]}" --clobber --repo "${{ needs.version.outputs.repo }}"
509+
493510
- run: ./script/publish.ts
494511
env:
495512
OPENCODE_VERSION: ${{ needs.version.outputs.version }}

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.