-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (56 loc) · 1.85 KB
/
Copy pathrelease.yml
File metadata and controls
67 lines (56 loc) · 1.85 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
name: macOS Release
on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
permissions:
contents: write
jobs:
build:
name: Build Wails App
runs-on: macos-26
timeout-minutes: 45
permissions:
contents: read
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
check-latest: true
- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Build app bundle
run: scripts/package-macos-universal.sh
- name: Validate app bundle metadata
run: |
test -d bin/DevToolbox.app
test "$(/usr/libexec/PlistBuddy -c 'Print :CFBundleName' bin/DevToolbox.app/Contents/Info.plist)" = "DevToolbox"
test "$(/usr/libexec/PlistBuddy -c 'Print :CFBundleIdentifier' bin/DevToolbox.app/Contents/Info.plist)" = "com.vuon9.devtoolbox"
- name: Archive app bundle
run: tar -czf "$RUNNER_TEMP/macos-app.tar.gz" -C bin DevToolbox.app
- name: Upload app bundle artifact
uses: actions/upload-artifact@v7.0.1
with:
name: devtoolbox-macos-app-${{ github.run_id }}
path: ${{ runner.temp }}/macos-app.tar.gz
retention-days: 1
release:
name: Sign, Package, and Notarize macOS App
needs: build
uses: vuon9/gh-workflows/.github/workflows/macos-release.yml@main
with:
app-name: DevToolbox
team-id: 256XRVYZ9V
app-path: bin/DevToolbox.app
app-artifact-name: devtoolbox-macos-app-${{ github.run_id }}
dmg-name: DevToolbox-macos-universal.dmg
artifact-name: devtoolbox-macos-release-${{ github.run_id }}
runner-label: macos-26
github-release-prerelease: ${{ contains(github.ref_name, '-') }}
secrets: inherit