-
Notifications
You must be signed in to change notification settings - Fork 595
628 lines (558 loc) · 21.1 KB
/
Copy pathrelease.yml
File metadata and controls
628 lines (558 loc) · 21.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
name: Release
on:
pull_request:
types:
- closed
branches:
- master
permissions:
contents: write
concurrency:
group: release-master
cancel-in-progress: false
env:
NODE_VERSION: '22'
RELEASE_CHANNEL: stable
jobs:
prepare:
name: Prepare release version
runs-on: ubuntu-latest
if: >-
github.event.pull_request.merged == true &&
github.event.pull_request.base.ref == 'master' &&
github.event.pull_request.head.ref == 'develop' &&
github.event.pull_request.head.repo.full_name == github.repository
outputs:
version: ${{ steps.version.outputs.version }}
tag: ${{ steps.version.outputs.tag }}
release_name: ${{ steps.version.outputs.release_name }}
previous_tag: ${{ steps.version.outputs.previous_tag }}
existing_tag: ${{ steps.version.outputs.existing_tag }}
steps:
- name: Check out merge commit
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.merge_commit_sha }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Compute release version
id: version
run: node ./scripts/compute-ci-release-version.cjs
build-macos:
name: Build macOS
runs-on: macos-latest
timeout-minutes: 90
needs:
- prepare
env:
KUN_APP_VERSION: ${{ needs.prepare.outputs.version }}
KUN_UPDATE_CHANNEL: stable
DEEPSEEK_GUI_APP_VERSION: ${{ needs.prepare.outputs.version }}
DEEPSEEK_GUI_UPDATE_CHANNEL: stable
RELEASE_CHANNEL: stable
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
CSC_FOR_PULL_REQUEST: 'true'
# The renderer bundle can exceed Node's default ~2 GiB heap on the
# macOS ARM runner; signed release packaging needs the same allowance
# that PR packaging uses.
NODE_OPTIONS: '--max-old-space-size=4096'
steps:
- name: Check out merge commit
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.merge_commit_sha }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Install Whisper build tooling
run: |
brew install cmake
- name: Install dependencies
run: npm ci
- name: Decode Apple signing credentials
env:
MAC_CODESIGN_P12_BASE64: ${{ secrets.MAC_CODESIGN_P12_BASE64 }}
APPLE_API_KEY_BASE64: ${{ secrets.APPLE_API_KEY_BASE64 }}
run: |
set -euo pipefail
for name in MAC_CODESIGN_P12_BASE64 CSC_KEY_PASSWORD APPLE_API_KEY_BASE64 APPLE_API_KEY_ID APPLE_API_ISSUER; do
if [[ -z "${!name:-}" ]]; then
echo "::error::Missing required secret or environment value: ${name}"
exit 1
fi
done
cert_path="${RUNNER_TEMP}/developer-id.p12"
key_path="${RUNNER_TEMP}/AuthKey_${APPLE_API_KEY_ID}.p8"
export CERT_PATH="${cert_path}"
export KEY_PATH="${key_path}"
node <<'NODE'
const fs = require('node:fs')
fs.writeFileSync(process.env.CERT_PATH, Buffer.from(process.env.MAC_CODESIGN_P12_BASE64, 'base64'))
fs.writeFileSync(process.env.KEY_PATH, Buffer.from(process.env.APPLE_API_KEY_BASE64, 'base64'))
NODE
{
echo "CSC_LINK=${cert_path}"
echo "APPLE_API_KEY=${key_path}"
echo "MAC_SIGN=1"
} >> "${GITHUB_ENV}"
- name: Verify Apple signing credentials
run: >
npm run verify:apple -- --p12 "${CSC_LINK}"
--p12-password "${CSC_KEY_PASSWORD}"
--p8 "${APPLE_API_KEY}"
--key-id "${APPLE_API_KEY_ID}"
--issuer "${APPLE_API_ISSUER}"
--check-notary
- name: Build signed macOS packages
run: npm run dist:mac:signed
- name: Smoke packaged update handoff (host-native macOS)
timeout-minutes: 20
shell: bash
run: |
set -euo pipefail
if [[ "$(node -p 'process.arch')" == "arm64" ]]; then
resources="dist/mac-arm64/Kun.app/Contents/Resources"
else
resources="dist/mac/Kun.app/Contents/Resources"
fi
npm run smoke:packaged-update-handoff -- --resources "${resources}"
- name: Upload macOS artifacts
uses: actions/upload-artifact@v4
with:
name: release-mac
if-no-files-found: error
retention-days: 7
path: |
dist/Kun-*-mac-*.dmg
dist/Kun-*-mac-*.zip
dist/Kun-*-mac-*.blockmap
dist/latest-mac.yml
build-windows:
name: Build Windows
runs-on: windows-latest
timeout-minutes: 90
needs:
- prepare
env:
KUN_APP_VERSION: ${{ needs.prepare.outputs.version }}
KUN_UPDATE_CHANNEL: stable
DEEPSEEK_GUI_APP_VERSION: ${{ needs.prepare.outputs.version }}
DEEPSEEK_GUI_UPDATE_CHANNEL: stable
RELEASE_CHANNEL: stable
CSC_IDENTITY_AUTO_DISCOVERY: 'false'
steps:
- name: Check out merge commit
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.merge_commit_sha }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Test Windows update rollback failpoints
env:
KUN_INSTALLER_TEST_ARTIFACT_ROOT: ${{ github.workspace }}\artifacts\windows-installer-transaction
run: npx vitest run src/main/windows-installer-migration.transaction.test.ts
- name: Upload Windows transaction diagnostics
if: always()
uses: actions/upload-artifact@v4
with:
name: release-windows-installer-transaction-diagnostics
if-no-files-found: warn
retention-days: 7
path: |
artifacts/windows-installer-transaction/**/diagnostic.log
artifacts/windows-installer-transaction/**/journal.json
artifacts/windows-installer-transaction/**/transaction.json
artifacts/windows-installer-transaction/**/result-*.txt
artifacts/windows-installer-transaction/**/fixture-summary.json
- name: Build Windows installer
run: npm run dist:win
- name: Smoke Windows installer migration
timeout-minutes: 60
run: npm run smoke:windows-installer-migration -- -InstallerPath (Get-ChildItem dist/Kun-*-win-x64.exe | Select-Object -First 1 -ExpandProperty FullName)
- name: Smoke packaged update handoff (Windows)
timeout-minutes: 20
run: npm run smoke:packaged-update-handoff -- --resources dist/win-unpacked/resources
- name: Upload Windows artifacts
uses: actions/upload-artifact@v4
with:
name: release-win
if-no-files-found: error
retention-days: 7
path: |
dist/Kun-*-win-x64.exe
dist/Kun-*-win-x64.exe.blockmap
dist/latest.yml
build-linux:
name: Build Linux (x64)
runs-on: ubuntu-latest
timeout-minutes: 90
needs:
- prepare
env:
KUN_APP_VERSION: ${{ needs.prepare.outputs.version }}
KUN_UPDATE_CHANNEL: stable
DEEPSEEK_GUI_APP_VERSION: ${{ needs.prepare.outputs.version }}
DEEPSEEK_GUI_UPDATE_CHANNEL: stable
RELEASE_CHANNEL: stable
CSC_IDENTITY_AUTO_DISCOVERY: 'false'
steps:
- name: Check out merge commit
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.merge_commit_sha }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Install Linux packaging dependencies
run: |
sudo apt-get update
# build-essential + python3: node-pty ships no Linux prebuild, so it
# must be compiled from source against Electron's ABI during dist.
sudo apt-get install -y --no-install-recommends libarchive-tools rpm fakeroot dpkg build-essential python3 xvfb xauth
- name: Install dependencies
run: npm ci
- name: Build Linux AppImage
run: npm run dist:linux
- name: Smoke packaged update handoff (Linux x64)
timeout-minutes: 20
env:
KUN_CI_ALLOW_NO_SANDBOX: '1'
run: |
# Keep Chromium's sandbox under test. GitHub-hosted Ubuntu restricts
# unprivileged user namespaces through AppArmor by default.
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
node ./scripts/configure-linux-chrome-sandbox.cjs --resources dist/linux-unpacked/resources
npm run smoke:packaged-update-handoff -- --resources dist/linux-unpacked/resources
- name: Upload Linux artifacts
uses: actions/upload-artifact@v4
with:
name: release-linux
if-no-files-found: error
retention-days: 7
path: |
dist/Kun-*-linux-x86_64.AppImage
dist/Kun-*-linux-x86_64.AppImage.blockmap
dist/Kun-*-linux-amd64.deb
dist/latest-linux.yml
build-linux-arm64:
name: Build Linux (ARM64)
runs-on: ubuntu-24.04-arm
timeout-minutes: 90
needs:
- prepare
env:
KUN_APP_VERSION: ${{ needs.prepare.outputs.version }}
KUN_UPDATE_CHANNEL: stable
DEEPSEEK_GUI_APP_VERSION: ${{ needs.prepare.outputs.version }}
DEEPSEEK_GUI_UPDATE_CHANNEL: stable
RELEASE_CHANNEL: stable
CSC_IDENTITY_AUTO_DISCOVERY: 'false'
steps:
- name: Check out merge commit
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.merge_commit_sha }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Install Linux packaging dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends libarchive-tools rpm fakeroot dpkg build-essential python3 cmake file xvfb xauth
- name: Install dependencies
run: npm ci
- name: Build Linux ARM64 AppImage and deb
run: npm run dist:linux:arm64
- name: Verify Linux ARM64 package architecture
run: >-
node ./scripts/verify-linux-package-architecture.mjs
--version "${{ needs.prepare.outputs.version }}"
--arch arm64
--dist dist
- name: Smoke packaged update handoff (Linux ARM64)
timeout-minutes: 20
env:
KUN_CI_ALLOW_NO_SANDBOX: '1'
run: |
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
node ./scripts/configure-linux-chrome-sandbox.cjs --resources dist/linux-arm64-unpacked/resources
npm run smoke:packaged-update-handoff -- --resources dist/linux-arm64-unpacked/resources
- name: Upload Linux ARM64 artifacts
uses: actions/upload-artifact@v4
with:
name: release-linux-arm64
if-no-files-found: error
retention-days: 7
path: |
dist/Kun-*-linux-arm64.AppImage
dist/Kun-*-linux-arm64.AppImage.blockmap
dist/Kun-*-linux-arm64.deb
dist/latest-linux-arm64.yml
build-tui:
name: Build standalone TUI (${{ matrix.target }})
runs-on: ${{ matrix.runner }}
timeout-minutes: 60
needs:
- prepare
strategy:
fail-fast: false
matrix:
include:
- runner: macos-15
target: darwin-arm64
- runner: macos-15-intel
target: darwin-x64
- runner: windows-2025
target: win32-x64
- runner: ubuntu-22.04
target: linux-x64
- runner: ubuntu-24.04-arm
target: linux-arm64
env:
KUN_APP_VERSION: ${{ needs.prepare.outputs.version }}
KUN_ARTIFACT_VERSION: ${{ needs.prepare.outputs.version }}
KUN_UPDATE_CHANNEL: stable
RELEASE_CHANNEL: stable
TAG_NAME: ${{ needs.prepare.outputs.tag }}
R2_PUBLIC_BASE_URL: ${{ secrets.R2_PUBLIC_BASE_URL }}
R2_RELEASE_PREFIX: ${{ secrets.R2_RELEASE_PREFIX }}
steps:
- name: Check out merge commit
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.merge_commit_sha }}
- name: Set up packaged Node.js
uses: actions/setup-node@v4
with:
node-version: '22.23.1'
cache: npm
cache-dependency-path: |
package-lock.json
kun/package-lock.json
- name: Install dependencies
run: |
npm ci
npm --prefix kun ci
- name: Build shared Kun runtime
run: npm run build:kun
- name: Package standalone TUI
run: >-
npm run package:tui --
--version "${{ needs.prepare.outputs.version }}"
--artifact-version "${{ needs.prepare.outputs.version }}"
--tag "${{ needs.prepare.outputs.tag }}"
--channel stable
--commit "${{ github.event.pull_request.merge_commit_sha }}"
--target "${{ matrix.target }}"
--output dist
- name: Upload standalone TUI artifact
uses: actions/upload-artifact@v4
with:
name: release-tui-${{ matrix.target }}
if-no-files-found: error
retention-days: 7
path: |
dist/Kun-TUI-*.tar.gz
dist/Kun-TUI-*.zip
dist/Kun-TUI-*.sha256
dist/Kun-TUI-*.json
publish:
name: Publish GitHub Release and R2
runs-on: ubuntu-latest
needs:
- prepare
- build-macos
- build-windows
- build-linux
- build-linux-arm64
- build-tui
env:
GH_TOKEN: ${{ github.token }}
TAG_NAME: ${{ needs.prepare.outputs.tag }}
RELEASE_VERSION: ${{ needs.prepare.outputs.version }}
RELEASE_NAME: ${{ needs.prepare.outputs.release_name }}
PREVIOUS_TAG: ${{ needs.prepare.outputs.previous_tag }}
RELEASE_CHANNEL: stable
KUN_UPDATE_CHANNEL: stable
DEEPSEEK_GUI_UPDATE_CHANNEL: stable
R2_BUCKET: ${{ secrets.R2_BUCKET }}
R2_ACCOUNT_ID: ${{ secrets.R2_ACCOUNT_ID }}
R2_ENDPOINT: ${{ secrets.R2_ENDPOINT }}
R2_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
R2_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
R2_PUBLIC_BASE_URL: ${{ secrets.R2_PUBLIC_BASE_URL }}
R2_RELEASE_PREFIX: ${{ secrets.R2_RELEASE_PREFIX }}
steps:
- name: Check out merge commit
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.merge_commit_sha }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Install dependencies
run: npm ci
- name: Download release artifacts
uses: actions/download-artifact@v4
with:
pattern: release-*
path: release-artifacts
merge-multiple: true
- name: Rebuild shared GUI/TUI runtime identity
env:
KUN_APP_VERSION: ${{ needs.prepare.outputs.version }}
KUN_ARTIFACT_VERSION: ${{ needs.prepare.outputs.version }}
KUN_UPDATE_CHANNEL: stable
run: npm run build:kun
- name: Verify release artifacts
run: |
set -euo pipefail
required=(
"Kun-*-mac-arm64.dmg"
"Kun-*-mac-x64.dmg"
"Kun-*-mac-arm64.zip"
"Kun-*-mac-x64.zip"
"Kun-*-win-x64.exe"
"Kun-*-linux-x86_64.AppImage"
"Kun-*-linux-amd64.deb"
"Kun-*-linux-arm64.AppImage"
"Kun-*-linux-arm64.deb"
"latest-mac.yml"
"latest.yml"
"latest-linux.yml"
"latest-linux-arm64.yml"
"Kun-TUI-${RELEASE_VERSION}-mac-arm64.tar.gz"
"Kun-TUI-${RELEASE_VERSION}-mac-x64.tar.gz"
"Kun-TUI-${RELEASE_VERSION}-win-x64.zip"
"Kun-TUI-${RELEASE_VERSION}-linux-x64.tar.gz"
"Kun-TUI-${RELEASE_VERSION}-linux-arm64.tar.gz"
)
for pattern in "${required[@]}"; do
if ! compgen -G "release-artifacts/${pattern}" > /dev/null; then
echo "::error::Missing release artifact matching ${pattern}"
find release-artifacts -maxdepth 2 -type f -print | sort
exit 1
fi
done
find release-artifacts -maxdepth 2 -type f -print | sort
- name: Assemble standalone TUI release contract
run: >-
npm run assemble:tui-release --
--directory release-artifacts
--version "${RELEASE_VERSION}"
--artifact-version "${RELEASE_VERSION}"
--tag "${TAG_NAME}"
--channel "${RELEASE_CHANNEL}"
--commit "$(git rev-parse HEAD)"
--expected-build-id "$(node -p "require('./kun/dist/runtime-build.json').buildId")"
--public-base-url "${R2_PUBLIC_BASE_URL}"
--release-prefix "${R2_RELEASE_PREFIX:-deepseek-gui}"
- name: Generate release notes
run: |
set -euo pipefail
curated_notes="release/release-v${RELEASE_VERSION}.md"
if [[ -f "${curated_notes}" ]]; then
cp "${curated_notes}" release-notes.md
elif [[ -n "${PREVIOUS_TAG}" ]]; then
node ./scripts/generate-release-notes.cjs "${PREVIOUS_TAG}" > release-notes.md
else
node ./scripts/generate-release-notes.cjs > release-notes.md
fi
{
echo
echo "---"
echo
echo "### 构建信息"
echo
echo "- Release version: \`${RELEASE_VERSION}\`"
echo "- Release channel: \`${RELEASE_CHANNEL}\`"
echo "- Branch: \`master\`"
echo "- Commit: \`${GITHUB_SHA::7}\`"
echo "- macOS: Developer ID signed and notarized"
echo "- Platforms: macOS arm64/x64, Windows x64, Linux arm64/x64 AppImage/deb"
echo "- Standalone TUI: macOS arm64/x64, Windows x64, Linux arm64/x64"
} >> release-notes.md
- name: Ensure release tag
run: |
set -euo pipefail
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
head_sha="$(git rev-parse HEAD)"
if git rev-parse -q --verify "refs/tags/${TAG_NAME}" > /dev/null; then
tag_sha="$(git rev-list -n 1 "${TAG_NAME}")"
if [[ "${tag_sha}" != "${head_sha}" ]]; then
echo "::error::Tag ${TAG_NAME} points at ${tag_sha}, expected ${head_sha}"
exit 1
fi
echo "Reusing existing tag ${TAG_NAME}"
else
git tag -a "${TAG_NAME}" -m "${RELEASE_NAME}" "${head_sha}"
git push origin "refs/tags/${TAG_NAME}"
fi
- name: Create or update draft GitHub Release
run: |
set -euo pipefail
if gh release view "${TAG_NAME}" > /dev/null 2>&1; then
gh release edit "${TAG_NAME}" \
--title "${RELEASE_NAME}" \
--notes-file release-notes.md
else
gh release create "${TAG_NAME}" \
--draft \
--title "${RELEASE_NAME}" \
--notes-file release-notes.md \
--verify-tag
fi
- name: Upload GitHub Release assets
run: |
set -euo pipefail
mapfile -d '' assets < <(
find release-artifacts -type f \
\( -name 'Kun-*' -o -name 'latest*.yml' -o -name 'release-tui.json' -o -name 'SHA256SUMS-tui.txt' \) \
-print0
)
if [[ "${#assets[@]}" -eq 0 ]]; then
echo "::error::No release assets found"
exit 1
fi
gh release upload "${TAG_NAME}" "${assets[@]}" --clobber
- name: Upload release archive to R2
run: |
set -euo pipefail
node ./scripts/publish-r2.mjs upload --platform mac --dist release-artifacts --tag "${TAG_NAME}" --channel "${RELEASE_CHANNEL}"
node ./scripts/publish-r2.mjs upload --platform win --dist release-artifacts --tag "${TAG_NAME}" --channel "${RELEASE_CHANNEL}"
node ./scripts/publish-r2.mjs upload --platform linux --dist release-artifacts --tag "${TAG_NAME}" --channel "${RELEASE_CHANNEL}"
node ./scripts/publish-r2.mjs upload-tui --dist release-artifacts --tag "${TAG_NAME}" --channel "${RELEASE_CHANNEL}"
- name: Promote R2 latest
run: >
node ./scripts/publish-r2.mjs promote
--tag "${TAG_NAME}"
--channel "${RELEASE_CHANNEL}"
--platforms mac,win,linux
--require-tui
- name: Publish GitHub Release
run: gh release edit "${TAG_NAME}" --draft=false --prerelease=false --latest