Skip to content

Commit dfe901e

Browse files
committed
feature: add ios export workflow
1 parent f0913a0 commit dfe901e

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: iOS-ipa-build
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build-ios:
8+
name: 🎉 iOS Build
9+
runs-on: macos-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- uses: subosito/flutter-action@v2
14+
with:
15+
channel: 'stable'
16+
architecture: x64
17+
- run: flutter pub get
18+
19+
- run: pod repo update
20+
working-directory: ios
21+
22+
- run: flutter build ios --release --no-codesign
23+
24+
- run: mkdir Payload
25+
working-directory: build/ios/iphoneos
26+
27+
- run: mv Runner.app/ Payload
28+
working-directory: build/ios/iphoneos
29+
30+
- name: Zip output
31+
run: zip -qq -r -9 FlutterIpaExport.ipa Payload
32+
working-directory: build/ios/iphoneos
33+
34+
- name: Upload binaries to release
35+
uses: svenstaro/upload-release-action@v2
36+
with:
37+
repo_token: ${{ secrets.GITHUB_TOKEN }}
38+
file: build/ios/iphoneos/FlutterIpaExport.ipa
39+
tag: v1.0
40+
overwrite: true
41+
body: "This is first release"

0 commit comments

Comments
 (0)