We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e91ae7 commit 2b66cf5Copy full SHA for 2b66cf5
.github/workflows/main.yml
@@ -1,5 +1,8 @@
1
name: Flutter Build
2
3
+permissions:
4
+ contents: write
5
+
6
on:
7
push:
8
branches: [ "main" ]
@@ -66,3 +69,20 @@ jobs:
66
69
with:
67
70
name: release-ios
68
71
path: build/ios/iphoneos/Runner.app
72
73
+ # 1. Zip the iOS App (Required because Releases can only handle files, not folders)
74
+ - name: Zip iOS Build
75
+ run: |
76
+ cd build/ios/iphoneos
77
+ zip -r release-ios.zip Runner.app
78
+ echo "IOS_ZIP_PATH=build/ios/iphoneos/release-ios.zip" >> $GITHUB_ENV
79
80
+ # 2. Create Release and Upload Files
81
+ - name: Create Release
82
+ uses: softprops/action-gh-release@v2
83
+ with:
84
+ files: |
85
+ build/app/outputs/flutter-apk/app-release.apk
86
+ ${{ env.IOS_ZIP_PATH }}
87
+ env:
88
+ GITHUB_TOKEN: ${{ secrets.TOKEN }}
0 commit comments