-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.09 KB
/
build.yml
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
name: build
on:
push:
tags:
- "release-v*"
jobs:
build:
runs-on: macos-12
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.4.1'
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: "zulu"
java-version: "11"
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.0.5"
channel: "stable"
- run: flutter pub get
- run: flutter pub deps
- run: flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
- run: flutter build apk --release
- run: |
flutter build ios --release --no-codesign
cd build/ios/iphoneos
mkdir Payload
cd Payload
ln -s ../Runner.app
cd ..
zip -r app.ipa Payload
- uses: softprops/action-gh-release@v1
with:
files: |
build/app/outputs/flutter-apk/*.apk
build/ios/iphoneos/app.ipa
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}