-
-
Notifications
You must be signed in to change notification settings - Fork 15
90 lines (70 loc) · 2.42 KB
/
Copy pathrelease.yml
File metadata and controls
90 lines (70 loc) · 2.42 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
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build-and-release:
name: Build & Release
runs-on: macos-15
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Extract version from tag
id: version
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
- name: Update version in build script
run: |
sed -i '' "s/CFBundleVersion.*/<key>CFBundleVersion<\/key>/" scripts/build.sh || true
echo "Building version: ${{ steps.version.outputs.VERSION }}"
- name: Build release app bundle
run: ./scripts/build.sh release
- name: Verify code signature
run: codesign -v --deep --strict VocaMac.app
- name: Run tests
run: swift test
- name: Create DMG
run: |
mkdir -p dmg-staging
cp -R VocaMac.app dmg-staging/
ln -s /Applications dmg-staging/Applications
hdiutil create -volname "VocaMac" \
-srcfolder dmg-staging \
-ov -format UDZO \
"VocaMac-${{ steps.version.outputs.VERSION }}-arm64.dmg"
echo "DMG created:"
ls -lh VocaMac-*.dmg
- name: Create ZIP archive
run: |
ditto -c -k --sequesterRsrc --keepParent VocaMac.app \
"VocaMac-${{ steps.version.outputs.VERSION }}-arm64.zip"
echo "ZIP created:"
ls -lh VocaMac-*.zip
- name: Generate checksums
run: |
shasum -a 256 VocaMac-*.dmg VocaMac-*.zip > checksums.txt
cat checksums.txt
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
draft: true
files: |
VocaMac-*.dmg
VocaMac-*.zip
checksums.txt
body: |
## VocaMac ${{ steps.version.outputs.VERSION }}
### Installation
1. Download `VocaMac-${{ steps.version.outputs.VERSION }}-arm64.dmg`
2. Open the DMG and drag VocaMac to Applications
3. Open VocaMac from Applications
4. Grant Microphone, Accessibility, and Input Monitoring permissions when prompted
### Checksums (SHA-256)
See `checksums.txt` for verification.
### Requirements
- macOS 13 (Ventura) or later
- Apple Silicon (arm64)