From 1a5010c58746a3858ab6e6336b4851c225bcc380 Mon Sep 17 00:00:00 2001 From: Sheen Huth <9674168+sheenhx@users.noreply.github.com> Date: Thu, 26 Sep 2024 20:32:27 +0200 Subject: [PATCH] Update submit.yml --- .github/workflows/submit.yml | 78 +----------------------------------- 1 file changed, 1 insertion(+), 77 deletions(-) diff --git a/.github/workflows/submit.yml b/.github/workflows/submit.yml index 02463614..77edbbe3 100644 --- a/.github/workflows/submit.yml +++ b/.github/workflows/submit.yml @@ -3,7 +3,7 @@ name: Submit to Google and Apple on: push: branches: - - main + - google jobs: build-apk: @@ -41,82 +41,6 @@ jobs: path: build/app/outputs/bundle/googlePlayRelease/moonchain.aab - - - build-macos: - name: Build-ios - runs-on: macos-latest - steps: - - name: Checkout code with submodules - uses: actions/checkout@v4 - with: - submodules: recursive - - - uses: sheenhx/action-flutter-build-ios@v1 - with: - # always use --export-options-plist=ios/GithubActionsExportOptions.plist - build-cmd: flutter build ipa --build-number=$(( 15 + ${{ github.run_number }})) --export-options-plist=ios/GithubActionsExportOptions.plist - certificate-base64: ${{ secrets.IOS_BUILD_CERTIFICATE_BASE64 }} - certificate-password: ${{ secrets.IOS_BUILD_CERTIFICATE_PASSWORD }} - provisioning-profile-base64: ${{ secrets.IOS_MOBILE_PROVISIONING_PROFILE_BASE64 }} - keychain-password: ${{ secrets.IOS_GITHUB_KEYCHAIN_PASSWORD }} - - - name: Archive IPA - uses: actions/upload-artifact@v4 - with: - name: release-ipa - # Try running the build locally with the build command to be sure of this path - path: build/ios/ipa/*.ipa - - - name: "Upload app to TestFlight" - uses: henrik1/upload-testflight@v2 - with: - app-path: "build/ios/ipa/moonchain.ipa" - issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }} - api-key-id: ${{ secrets.APPSTORE_API_KEY_ID }} - api-private-key: ${{ secrets.APPSTORE_API_PRIVATE_KEY }} - - upload-combined: - name: Combine and Upload Builds - needs: [build-apk, build-macos] - runs-on: ubuntu-latest - steps: - - name: Download Ubuntu artifact - uses: actions/download-artifact@v4 - with: - name: release-apk - path: combined-builds/android - - - name: Download macOS artifact - uses: actions/download-artifact@v4 - with: - name: release-ipa - path: combined-builds/iOS - - - name: Upload combined artifacts - uses: actions/upload-artifact@v4 - with: - name: combined-builds - path: combined-builds - - - name: Generate - id: generate - uses: AcmeSoftwareLLC/app-build-number@v1 - with: - timezone: Asia/Kathmandu - - - name: Display the generated build number - run: echo "Build Number > ${{ steps.generate.outputs.build-number }}" - - - - uses: ncipollo/release-action@v1 - with: - artifacts: "combined-builds/android/*.aab,combined-builds/iOS/*.ipa" - token: ${{ secrets.DART_TOKEN }} - tag: ${{ steps.generate.outputs.build-number }} - name: "Release-v${{ steps.generate.outputs.build-number }}-iOS/Android-Visit mxc1usd.com" - - - uses: r0adkll/upload-google-play@v1 with: serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}