-
-
Notifications
You must be signed in to change notification settings - Fork 1k
650 lines (554 loc) · 21.6 KB
/
release.yml
File metadata and controls
650 lines (554 loc) · 21.6 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
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
name: Publish Release
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag_name:
description: Existing release tag to rebuild and publish
required: true
type: string
permissions:
contents: write
actions: write
id-token: write
attestations: write
artifact-metadata: write
concurrency:
group: release-${{ github.event.release.tag_name || github.event.inputs.tag_name || github.run_id }}
cancel-in-progress: false
jobs:
prepare-release:
name: Prepare release
runs-on: ubuntu-latest
outputs:
tag_name: ${{ steps.prepare.outputs.tag_name }}
package_version: ${{ steps.prepare.outputs.package_version }}
source_sha: ${{ steps.prepare.outputs.source_sha }}
prerelease: ${{ steps.prepare.outputs.prerelease }}
steps:
- name: Checkout release source
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'release' && github.event.release.tag_name || github.event.inputs.tag_name }}
fetch-depth: 0
- name: Validate release tag
id: prepare
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
if [ "${{ github.event_name }}" = "release" ]; then
TAG_NAME="${{ github.event.release.tag_name }}"
IS_PRERELEASE="${{ github.event.release.prerelease }}"
else
TAG_NAME="${{ github.event.inputs.tag_name }}"
IS_PRERELEASE="$(gh release view "$TAG_NAME" --repo "${{ github.repository }}" --json isPrerelease --jq '.isPrerelease' 2>/dev/null || echo false)"
fi
if [ -z "$TAG_NAME" ]; then
echo "Release tag is required."
exit 1
fi
TAG_VERSION="${TAG_NAME#v}"
PACKAGE_VERSION=$(node -p "require('./package.json').version")
if [ "$PACKAGE_VERSION" != "$TAG_VERSION" ]; then
echo "Release tag version ($TAG_VERSION) does not match package.json version ($PACKAGE_VERSION)."
exit 1
fi
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
gh release view "$TAG_NAME" --repo "${{ github.repository }}" >/dev/null 2>&1 || \
gh release create "$TAG_NAME" --repo "${{ github.repository }}" --verify-tag --draft --title "$TAG_NAME"
fi
echo "tag_name=$TAG_NAME" >> "$GITHUB_OUTPUT"
echo "package_version=$PACKAGE_VERSION" >> "$GITHUB_OUTPUT"
echo "source_sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
echo "prerelease=$IS_PRERELEASE" >> "$GITHUB_OUTPUT"
build-macos-x64:
name: Build macOS x64
needs: prepare-release
runs-on: macos-15-intel
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ needs.prepare-release.outputs.source_sha }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Validate macOS signing secrets
shell: bash
env:
APPLE_SIGNING_CERTIFICATE_P12_BASE64: ${{ secrets.APPLE_SIGNING_CERTIFICATE_P12_BASE64 }}
APPLE_SIGNING_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_SIGNING_CERTIFICATE_PASSWORD }}
run: |
set -euo pipefail
for name in APPLE_SIGNING_CERTIFICATE_P12_BASE64 APPLE_SIGNING_CERTIFICATE_PASSWORD APPLE_ID APPLE_APP_SPECIFIC_PASSWORD APPLE_TEAM_ID; do
if [ -z "${!name:-}" ]; then
echo "Missing required macOS release secret: $name"
exit 1
fi
done
- name: Prepare macOS signing certificate
shell: bash
env:
APPLE_SIGNING_CERTIFICATE_P12_BASE64: ${{ secrets.APPLE_SIGNING_CERTIFICATE_P12_BASE64 }}
APPLE_SIGNING_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_SIGNING_CERTIFICATE_PASSWORD }}
run: |
set -euo pipefail
CERT_PATH="$RUNNER_TEMP/apple-signing-cert.p12"
echo "$APPLE_SIGNING_CERTIFICATE_P12_BASE64" | base64 --decode > "$CERT_PATH"
{
echo "CSC_LINK=$CERT_PATH"
echo "CSC_KEY_PASSWORD=$APPLE_SIGNING_CERTIFICATE_PASSWORD"
} >> "$GITHUB_ENV"
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Install bundled FFmpeg binary
run: node scripts/install-ffmpeg-static.mjs
- name: Verify bundled FFmpeg binary
run: |
node -e "const fs=require('node:fs'); const ffmpeg=require('ffmpeg-static'); if (typeof ffmpeg !== 'string' || !fs.existsSync(ffmpeg)) { throw new Error('Bundled ffmpeg-static binary is missing: ' + ffmpeg); } console.log('Using bundled ffmpeg binary: ' + ffmpeg);"
- name: Install app dependencies
run: npx electron-builder install-app-deps
- name: Build native macOS helpers
run: npm run build:platform-native-helpers
- name: Build macOS x64
run: |
npx tsc
npx vite build
npx electron-builder --mac dir dmg zip --x64 --publish never
- name: Smoke test packaged macOS x64 paths
env:
PACKAGED_SMOKE_ARCH_TAGS: darwin-x64
run: npm run smoke:packaged-binaries
- name: Generate macOS x64 artifact checksums
run: npm run checksums:release -- SHA256SUMS-macos-x64.txt
- name: Attest macOS x64 artifacts
uses: actions/attest@v4
with:
subject-checksums: release/SHA256SUMS-macos-x64.txt
- name: Upload macOS x64 artifacts
uses: actions/upload-artifact@v4
with:
name: macos-x64-release
path: |
release/*.dmg
release/*.zip
release/*.blockmap
release/latest-mac.yml
release/SHA256SUMS*.txt
if-no-files-found: error
build-macos-arm64:
name: Build macOS arm64
needs: prepare-release
runs-on: macos-14
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ needs.prepare-release.outputs.source_sha }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Validate macOS signing secrets
shell: bash
env:
APPLE_SIGNING_CERTIFICATE_P12_BASE64: ${{ secrets.APPLE_SIGNING_CERTIFICATE_P12_BASE64 }}
APPLE_SIGNING_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_SIGNING_CERTIFICATE_PASSWORD }}
run: |
set -euo pipefail
for name in APPLE_SIGNING_CERTIFICATE_P12_BASE64 APPLE_SIGNING_CERTIFICATE_PASSWORD APPLE_ID APPLE_APP_SPECIFIC_PASSWORD APPLE_TEAM_ID; do
if [ -z "${!name:-}" ]; then
echo "Missing required macOS release secret: $name"
exit 1
fi
done
- name: Prepare macOS signing certificate
shell: bash
env:
APPLE_SIGNING_CERTIFICATE_P12_BASE64: ${{ secrets.APPLE_SIGNING_CERTIFICATE_P12_BASE64 }}
APPLE_SIGNING_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_SIGNING_CERTIFICATE_PASSWORD }}
run: |
set -euo pipefail
CERT_PATH="$RUNNER_TEMP/apple-signing-cert.p12"
echo "$APPLE_SIGNING_CERTIFICATE_P12_BASE64" | base64 --decode > "$CERT_PATH"
{
echo "CSC_LINK=$CERT_PATH"
echo "CSC_KEY_PASSWORD=$APPLE_SIGNING_CERTIFICATE_PASSWORD"
} >> "$GITHUB_ENV"
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Install bundled FFmpeg binary
run: node scripts/install-ffmpeg-static.mjs
- name: Verify bundled FFmpeg binary
run: |
node -e "const fs=require('node:fs'); const ffmpeg=require('ffmpeg-static'); if (typeof ffmpeg !== 'string' || !fs.existsSync(ffmpeg)) { throw new Error('Bundled ffmpeg-static binary is missing: ' + ffmpeg); } console.log('Using bundled ffmpeg binary: ' + ffmpeg);"
- name: Install app dependencies
run: npx electron-builder install-app-deps
- name: Build native macOS helpers
run: npm run build:platform-native-helpers
- name: Build macOS arm64
run: |
npx tsc
npx vite build
npx electron-builder --mac dir dmg zip --arm64 --publish never
- name: Smoke test packaged macOS arm64 paths
env:
PACKAGED_SMOKE_ARCH_TAGS: darwin-arm64
run: npm run smoke:packaged-binaries
- name: Generate macOS arm64 artifact checksums
run: npm run checksums:release -- SHA256SUMS-macos-arm64.txt
- name: Attest macOS arm64 artifacts
uses: actions/attest@v4
with:
subject-checksums: release/SHA256SUMS-macos-arm64.txt
- name: Upload macOS arm64 artifacts
uses: actions/upload-artifact@v4
with:
name: macos-arm64-release
path: |
release/*.dmg
release/*.zip
release/*.blockmap
release/latest-mac.yml
release/SHA256SUMS*.txt
if-no-files-found: error
merge-macos-update-metadata:
name: Merge macOS update metadata
needs:
- prepare-release
- build-macos-x64
- build-macos-arm64
runs-on: ubuntu-latest
steps:
- name: Download macOS x64 artifacts
uses: actions/download-artifact@v4
with:
name: macos-x64-release
path: release-assets/macos-x64
- name: Download macOS arm64 artifacts
uses: actions/download-artifact@v4
with:
name: macos-arm64-release
path: release-assets/macos-arm64
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install PyYAML
run: python -m pip install pyyaml
- name: Merge latest-mac.yml
shell: bash
run: |
set -euo pipefail
mkdir -p release-assets/merged
python <<'PY'
from pathlib import Path
import yaml
x64_info = yaml.safe_load(Path('release-assets/macos-x64/latest-mac.yml').read_text())
arm64_info = yaml.safe_load(Path('release-assets/macos-arm64/latest-mac.yml').read_text())
merged_files = []
seen_urls = set()
for info in (x64_info, arm64_info):
for file_info in info.get('files', []):
url = file_info.get('url')
if url and url not in seen_urls:
seen_urls.add(url)
merged_files.append(file_info)
if not merged_files:
raise SystemExit('No macOS update files found to merge.')
preferred = next((item for item in merged_files if 'x64' in item.get('url', '')), merged_files[0])
merged = dict(x64_info)
merged['files'] = merged_files
merged['path'] = preferred.get('url', merged.get('path'))
merged['sha512'] = preferred.get('sha512', merged.get('sha512'))
if not merged.get('releaseDate') and arm64_info.get('releaseDate'):
merged['releaseDate'] = arm64_info['releaseDate']
Path('release-assets/merged/latest-mac.yml').write_text(
yaml.safe_dump(merged, sort_keys=False)
)
PY
- name: Upload merged latest-mac.yml artifact
uses: actions/upload-artifact@v4
with:
name: macos-merged-metadata
path: release-assets/merged/latest-mac.yml
if-no-files-found: error
build-windows-x64:
name: Build Windows x64
needs: prepare-release
runs-on: windows-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ needs.prepare-release.outputs.source_sha }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Configure Windows signing
shell: pwsh
env:
WINDOWS_SIGNING_CERTIFICATE_P12_BASE64: ${{ secrets.WINDOWS_SIGNING_CERTIFICATE_P12_BASE64 }}
WINDOWS_SIGNING_CERTIFICATE_PASSWORD: ${{ secrets.WINDOWS_SIGNING_CERTIFICATE_PASSWORD }}
run: |
if ([string]::IsNullOrWhiteSpace($env:WINDOWS_SIGNING_CERTIFICATE_P12_BASE64) -or [string]::IsNullOrWhiteSpace($env:WINDOWS_SIGNING_CERTIFICATE_PASSWORD)) {
Write-Warning 'Windows signing secrets are missing. Building an unsigned installer.'
Add-Content -Path $env:GITHUB_ENV -Value 'CSC_IDENTITY_AUTO_DISCOVERY=false'
exit 0
}
$certPath = Join-Path $env:RUNNER_TEMP 'windows-signing-cert.p12'
[IO.File]::WriteAllBytes($certPath, [Convert]::FromBase64String($env:WINDOWS_SIGNING_CERTIFICATE_P12_BASE64))
Add-Content -Path $env:GITHUB_ENV -Value "WIN_CSC_LINK=$certPath"
Add-Content -Path $env:GITHUB_ENV -Value "WIN_CSC_KEY_PASSWORD=$env:WINDOWS_SIGNING_CERTIFICATE_PASSWORD"
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Install bundled FFmpeg binary
run: node scripts/install-ffmpeg-static.mjs
- name: Verify bundled FFmpeg binary
run: |
node -e "const fs=require('node:fs'); const ffmpeg=require('ffmpeg-static'); if (typeof ffmpeg !== 'string' || !fs.existsSync(ffmpeg)) { throw new Error('Bundled ffmpeg-static binary is missing: ' + ffmpeg); } console.log('Using bundled ffmpeg binary: ' + ffmpeg);"
- name: Remove stale uiohook build output
shell: pwsh
run: |
if (Test-Path node_modules/uiohook-napi/build) {
Remove-Item node_modules/uiohook-napi/build -Recurse -Force
}
- name: Install app dependencies
run: npx electron-builder install-app-deps
- name: Build Windows x64
shell: pwsh
run: |
npm run build:platform-native-helpers
npx tsc
npx vite build
npx electron-builder --win dir nsis --x64 --publish never
- name: Smoke test packaged Windows x64 paths
run: npm run smoke:packaged-binaries
- name: Generate Windows x64 artifact checksums
run: npm run checksums:release -- SHA256SUMS-windows-x64.txt
- name: Attest Windows x64 artifacts
uses: actions/attest@v4
with:
subject-checksums: release/SHA256SUMS-windows-x64.txt
- name: Upload Windows x64 artifacts
uses: actions/upload-artifact@v4
with:
name: windows-x64-release
path: |
release/*.exe
release/*.blockmap
release/latest*.yml
release/SHA256SUMS*.txt
if-no-files-found: error
build-linux-x64:
name: Build Linux x64
needs: prepare-release
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ needs.prepare-release.outputs.source_sha }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Linux native build dependencies
run: |
sudo apt-get update
sudo apt-get install -y libx11-dev libxt-dev libxtst-dev libxkbfile-dev libxi-dev libxrandr-dev libxinerama-dev
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Install bundled FFmpeg binary
run: node scripts/install-ffmpeg-static.mjs
- name: Verify bundled FFmpeg binary
run: |
node -e "const fs=require('node:fs'); const ffmpeg=require('ffmpeg-static'); if (typeof ffmpeg !== 'string' || !fs.existsSync(ffmpeg)) { throw new Error('Bundled ffmpeg-static binary is missing: ' + ffmpeg); } console.log('Using bundled ffmpeg binary: ' + ffmpeg);"
- name: Remove stale uiohook build output
run: rm -rf node_modules/uiohook-napi/build
- name: Install app dependencies
run: npx electron-builder install-app-deps
- name: Build Linux x64
run: |
export CSC_IDENTITY_AUTO_DISCOVERY=false
npm run build:platform-native-helpers
npx tsc
npx vite build
npx electron-builder --linux dir AppImage --x64 --publish never
- name: Smoke test packaged Linux x64 paths
run: npm run smoke:packaged-binaries
- name: Generate Linux x64 artifact checksums
run: npm run checksums:release -- SHA256SUMS-linux-x64.txt
- name: Attest Linux x64 artifacts
uses: actions/attest@v4
with:
subject-checksums: release/SHA256SUMS-linux-x64.txt
- name: Upload Linux x64 artifacts
uses: actions/upload-artifact@v4
with:
name: linux-x64-release
path: |
release/*.AppImage
release/*.blockmap
release/latest-linux.yml
release/SHA256SUMS*.txt
if-no-files-found: error
publish-release-assets:
name: Publish release assets
needs:
- prepare-release
- build-macos-x64
- build-macos-arm64
- merge-macos-update-metadata
- build-windows-x64
- build-linux-x64
runs-on: ubuntu-latest
steps:
- name: Download macOS x64 artifacts
uses: actions/download-artifact@v4
with:
name: macos-x64-release
path: release-assets/macos-x64
- name: Download macOS arm64 artifacts
uses: actions/download-artifact@v4
with:
name: macos-arm64-release
path: release-assets/macos-arm64
- name: Download merged macOS metadata
uses: actions/download-artifact@v4
with:
name: macos-merged-metadata
path: release-assets/macos-merged
- name: Download Windows x64 artifacts
uses: actions/download-artifact@v4
with:
name: windows-x64-release
path: release-assets/windows-x64
- name: Download Linux x64 artifacts
uses: actions/download-artifact@v4
with:
name: linux-x64-release
path: release-assets/linux-x64
- name: Stage release assets
shell: bash
env:
IS_PRERELEASE: ${{ needs.prepare-release.outputs.prerelease }}
run: |
set -euo pipefail
shopt -s nullglob
mkdir -p release-assets/upload
assets=(
release-assets/macos-x64/*.dmg
release-assets/macos-x64/*.zip
release-assets/macos-x64/*.blockmap
release-assets/macos-arm64/*.dmg
release-assets/macos-arm64/*.zip
release-assets/macos-arm64/*.blockmap
release-assets/windows-x64/*.exe
release-assets/windows-x64/*.blockmap
release-assets/linux-x64/*.AppImage
release-assets/linux-x64/*.blockmap
)
if [ "$IS_PRERELEASE" != "true" ]; then
assets+=(
release-assets/macos-merged/latest-mac.yml
release-assets/windows-x64/latest*.yml
release-assets/linux-x64/latest-linux.yml
)
fi
if [ ${#assets[@]} -eq 0 ]; then
echo "No release assets found to checksum."
exit 1
fi
for file in "${assets[@]}"; do
target="release-assets/upload/$(basename "$file")"
if [ -e "$target" ]; then
echo "Duplicate release asset name: $(basename "$file")"
exit 1
fi
cp "$file" "$target"
done
- name: Generate release asset checksums
shell: bash
run: |
set -euo pipefail
cd release-assets/upload
sha256sum * | sort -k2,2 > SHA256SUMS.txt
sha256sum -c SHA256SUMS.txt
- name: Attest release assets
uses: actions/attest@v4
with:
subject-checksums: release-assets/upload/SHA256SUMS.txt
- name: Upload release assets to GitHub
shell: bash
run: |
set -euo pipefail
shopt -s nullglob
assets=(
release-assets/upload/*
)
if [ ${#assets[@]} -eq 0 ]; then
echo "No release assets found to upload."
exit 1
fi
gh release upload "${{ needs.prepare-release.outputs.tag_name }}" \
"${assets[@]}" \
--repo "${{ github.repository }}" \
--clobber
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
trigger-homebrew-update:
name: Trigger Homebrew tap update
needs:
- prepare-release
- publish-release-assets
runs-on: ubuntu-latest
if: needs.prepare-release.outputs.prerelease != 'true'
steps:
- name: Dispatch Homebrew tap workflow
shell: bash
run: |
gh workflow run homebrew-tap.yml \
--repo "${{ github.repository }}" \
-f tag="${{ needs.prepare-release.outputs.tag_name }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}