-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 1.01 KB
/
release_macos.yaml
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
name: Release macOS
on:
workflow_dispatch:
jobs:
build_macos:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: 3.19.6
cache: true
cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' # optional, change this to force refresh cache
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' # optional, change this to specify the cache path
architecture: x64 # optional, x64 or arm64
- run: flutter --version
- name: setup pod
run: pod repo update
- name: Build for macOS
run: flutter build macos --release
- name: Package as dmg
run: cd dmg && /bin/sh ./build.sh && cd ../
- name: Upload to artifact
uses: actions/upload-artifact@v3
with:
name: aimigo.dmg
path: dmg/aimigo.dmg