From c8c4cabe705dfd3309d5388514d182e44a20f0cd Mon Sep 17 00:00:00 2001 From: Parag Gupta <103507835+Dante291@users.noreply.github.com> Date: Thu, 28 Dec 2023 11:22:16 +0530 Subject: [PATCH] Streamlining CI/CD workflow for iOS Build and Release Process in Talawa (#2266) * testing automation * testing automation * Streamlining CI/CD workflow for iOS Build and Release Process in Talawa * Streamlining CI/CD workflow for iOS Build and Release Process in Talawa * changes * changes * changes --- .github/workflows/push.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 4e1c64ab6..2a4dd0ae1 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -223,7 +223,7 @@ jobs: This may or may not be stable, so please have a look at the stable release(s). iOS-Build: - name: Testing build for iOS + name: iOS Build and Relaese runs-on: macos-latest needs: Flutter-Testing steps: @@ -235,3 +235,27 @@ jobs: architecture: x64 - name: Building for ios run: flutter build ios --release --no-codesign + # '--no-codesign' is used for building without code signing. + # For actual distribution, proper code signing is required. + + ######################################################## + ## Package the app as an .ipa and create a release ## + ######################################################## + + - name: Releasing for iOS + run: | + mkdir Payload + cp -r build/ios/iphoneos/Runner.app Payload/Runner.app + zip -r app.ipa Payload + # This packages the Runner.app into an .ipa file + + - uses: ncipollo/release-action@v1 + with: + name: "Automated iOS Release" + artifacts: "app-release.ipa" + allowUpdates: "true" + generateReleaseNotes: false + tag: "automated" + body: | + This is an automated release, triggered by a recent push. + This may or may not be stable, so please have a look at the stable release(s).