File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,11 @@ jobs:
113113 - uses : subosito/flutter-action@v2
114114 with :
115115 flutter-version : ' 3.32.7'
116+
117+ - name : Generate iOS Build Number
118+ run : |
119+ IOS_BUILD_NUMBER=$(date +%y%m%d%H)
120+ echo "ios_build_number=$IOS_BUILD_NUMBER" >> $GITHUB_ENV
116121
117122 - name : Build Release APK
118123 if : github.event_name != 'pull_request'
@@ -258,7 +263,7 @@ jobs:
258263 BUILD_VERSION_NAME : ${{ needs.version.outputs.version_name }}
259264 run : |
260265 echo "Building iOS app with CocoaPods..."
261- flutter build ios --release --no-codesign
266+ flutter build ios --release --no-codesign --build-number "$ios_build_number"
262267
263268 - name : Build iOS App (Signed for TestFlight)
264269 if : ${{ env.testflight_ready == 'true' }}
@@ -271,7 +276,7 @@ jobs:
271276 BUNDLE_ID="org.oplist.app"
272277 fi
273278
274- flutter build ios --release --no-codesign
279+ flutter build ios --release --no-codesign --build-number "$ios_build_number"
275280
276281 EXPORT_OPTIONS_PATH="${RUNNER_TEMP}/exportOptions.plist"
277282 /usr/libexec/PlistBuddy -c "Clear dict" "$EXPORT_OPTIONS_PATH" || true
You can’t perform that action at this time.
0 commit comments