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 — ci: enable tauri desktop app to be published with GitHub release ID a… · land007/opencode@89d9856

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • publish.yml
  • script
    • publish.ts
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
+9-4Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,22 @@ jobs:
7070
registry-url: "https://registry.npmjs.org"
7171

7272
- name: Publish
73-
run: |
74-
./script/publish.ts
73+
id: publish
74+
run: ./script/publish.ts
7575
env:
7676
OPENCODE_BUMP: ${{ inputs.bump }}
7777
OPENCODE_VERSION: ${{ inputs.version }}
7878
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
7979
AUR_KEY: ${{ secrets.AUR_KEY }}
8080
GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
8181
NPM_CONFIG_PROVENANCE: false
82+
outputs:
83+
releaseId: ${{ steps.publish.outputs.releaseId }}
84+
tagName: ${{ steps.publish.outputs.tagName }}
8285

8386
publish-tauri:
84-
if: false # inputs.bump || inputs.version
87+
needs: publish
88+
if: inputs.bump || inputs.version
8589
continue-on-error: true
8690
strategy:
8791
fail-fast: false
@@ -179,4 +183,5 @@ jobs:
179183
tauriScript: ${{ (startsWith(matrix.settings.host, 'ubuntu') && 'cargo tauri') || '' }}
180184
args: --target ${{ matrix.settings.target }}
181185
updaterJsonPreferNsis: true
182-
# releaseId: TODO
186+
releaseId: ${{ needs.publish.outputs.releaseId }}
187+
tagName: ${{ needs.publish.outputs.tagName }}
Collapse file

‎script/publish.ts‎

Copy file name to clipboardExpand all lines: script/publish.ts
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,4 +156,8 @@ if (!Script.preview) {
156156
await $`git push origin HEAD --tags --no-verify --force-with-lease`
157157
await new Promise((resolve) => setTimeout(resolve, 5_000))
158158
await $`gh release create v${Script.version} --title "v${Script.version}" --notes ${notes.join("\n") || "No notable changes"} ./packages/opencode/dist/*.zip ./packages/opencode/dist/*.tar.gz`
159+
const release = await $`gh release view v${Script.version} --json id,tagName`.json()
160+
if (process.env.GITHUB_OUTPUT) {
161+
await Bun.write(process.env.GITHUB_OUTPUT, `releaseId=${release.id}\ntagName=${release.tagName}\n`)
162+
}
159163
}

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.