From e4e05a857b6639a7b3dd54ddbcf054e4b1df6e40 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Thu, 23 Jul 2020 14:29:14 +0200 Subject: [PATCH 01/10] Update main.yml --- .github/workflows/main.yml | 49 +++++++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 48980157..086f58b5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,8 +44,51 @@ jobs: run: flutter test --coverage - name: Codecov run: bash <(curl -s https://codecov.io/bash) -c -t ${{ secrets.CODECOV_TOKEN }} -f coverage/lcov.info -F flutter_tool - build_and_deploy: - name: Build + build_ios: + name: Build iOS + runs-on: macOS-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-java@v1 + with: + java-version: '12.x' + - uses: subosito/flutter-action@v1.3.2 + with: + flutter-version: ${{ env.flutter_version }} + - run: | + cd example + flutter pub get + flutter clean + flutter build ios --release --no-codesign + - name: Upload iPA + uses: actions/upload-artifact@v2 + with: + name: ios-build + path: example/build/ios/iphoneos + + deploy ios: + name: Upload iOS to Firebase App Distribution + needs: [build_ios] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Download Artifact + uses: actions/download-artifact@v2 + with: + name: ios-build + - name: Upload IPA + uses: wzieba/Firebase-Distribution-Github-Action@v1.0.0 + with: + appId: io.getstream.ChatExample + token: ${{secrets.FIREBASE_TOKEN}} + group: ios-stream-testers + file: Runner.ipa + build_and_deploy_android: + name: Build and deploy android runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -64,7 +107,7 @@ jobs: cd example flutter build apk - name: Upload - uses: actions/upload-artifact@master + uses: actions/upload-artifact@v2 with: name: apk-build path: example/build/app/outputs/bundle/release From 55b9ec295082391773343e7b65bf66173b5bf4a0 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Thu, 23 Jul 2020 14:34:27 +0200 Subject: [PATCH 02/10] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 086f58b5..9b0dc5a0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -66,7 +66,7 @@ jobs: name: ios-build path: example/build/ios/iphoneos - deploy ios: + deploy_ios: name: Upload iOS to Firebase App Distribution needs: [build_ios] runs-on: ubuntu-latest From ecdb5cb6829181290ff3a774ee65b34b641ae95c Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Thu, 23 Jul 2020 14:47:19 +0200 Subject: [PATCH 03/10] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9b0dc5a0..89afa416 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -85,7 +85,7 @@ jobs: with: appId: io.getstream.ChatExample token: ${{secrets.FIREBASE_TOKEN}} - group: ios-stream-testers + groups: ios-stream-testers file: Runner.ipa build_and_deploy_android: name: Build and deploy android From 410945a8a4fd90c6cff3157e638a3a91dff75f63 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Thu, 23 Jul 2020 15:01:25 +0200 Subject: [PATCH 04/10] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 89afa416..7fa13a5a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -83,7 +83,7 @@ jobs: - name: Upload IPA uses: wzieba/Firebase-Distribution-Github-Action@v1.0.0 with: - appId: io.getstream.ChatExample + appId: "1:674907137625:ios:cafb9fb076a453c4d7f348" token: ${{secrets.FIREBASE_TOKEN}} groups: ios-stream-testers file: Runner.ipa From 2e8511138668c7def20046c3f544dcab3663c576 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Thu, 23 Jul 2020 15:25:37 +0200 Subject: [PATCH 05/10] update firebase deploy action version --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7fa13a5a..a940cdeb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -81,7 +81,7 @@ jobs: with: name: ios-build - name: Upload IPA - uses: wzieba/Firebase-Distribution-Github-Action@v1.0.0 + uses: wzieba/Firebase-Distribution-Github-Action@v1.2.1 with: appId: "1:674907137625:ios:cafb9fb076a453c4d7f348" token: ${{secrets.FIREBASE_TOKEN}} From 01bef02b73c5fc437037a3f22dd2569ea7ebd127 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Thu, 23 Jul 2020 15:45:48 +0200 Subject: [PATCH 06/10] debug release ios --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a940cdeb..a78d0f17 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -87,6 +87,7 @@ jobs: token: ${{secrets.FIREBASE_TOKEN}} groups: ios-stream-testers file: Runner.ipa + debug: true build_and_deploy_android: name: Build and deploy android runs-on: ubuntu-latest From 495fcc89b586cfbdf5c1fa4b8948cfa5ad62c697 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Thu, 23 Jul 2020 16:05:39 +0200 Subject: [PATCH 07/10] add debug commands --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a78d0f17..2ddecf1d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -80,6 +80,9 @@ jobs: uses: actions/download-artifact@v2 with: name: ios-build + - run: | + ls -l /home/runner/work/stream-chat-flutter/stream-chat-flutter + ls -l . - name: Upload IPA uses: wzieba/Firebase-Distribution-Github-Action@v1.2.1 with: From bc3245ccd0e12215d821e7f883c66ef8efc8cfc7 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Thu, 23 Jul 2020 16:20:11 +0200 Subject: [PATCH 08/10] Update main.yml --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2ddecf1d..5b1ad171 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -61,10 +61,10 @@ jobs: flutter clean flutter build ios --release --no-codesign - name: Upload iPA - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v2.1.0 with: name: ios-build - path: example/build/ios/iphoneos + path: ./example/build/ios/iphoneos/ deploy_ios: name: Upload iOS to Firebase App Distribution From eaad42b4dae8e3f4cf9eed0f701a3bd00dbdd9c2 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Thu, 23 Jul 2020 17:10:32 +0200 Subject: [PATCH 09/10] Update main.yml --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5b1ad171..8b0a6630 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -60,11 +60,16 @@ jobs: flutter pub get flutter clean flutter build ios --release --no-codesign + cd ios + xcodebuild -workspace Runner.xcworkspace -scheme Runner -sdk iphoneos -configuration Release archive -archivePath $PWD/build/Runner.xcarchive + xcodebuild -exportArchive -archivePath $PWD/build/Runner.xcarchive -exportOptionsPlist exportOptions.plist -exportPath $PWD/build/Runner.ipa + cd .. + - name: Upload iPA uses: actions/upload-artifact@v2.1.0 with: name: ios-build - path: ./example/build/ios/iphoneos/ + path: ios/build/Runner.ipa/Runner.ipa deploy_ios: name: Upload iOS to Firebase App Distribution From 0aa25ec3d05ed8d9d41d9dc617e959c6401de47d Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Fri, 24 Jul 2020 10:22:30 +0200 Subject: [PATCH 10/10] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8b0a6630..7cde01df 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -59,7 +59,7 @@ jobs: cd example flutter pub get flutter clean - flutter build ios --release --no-codesign + flutter build ios --release cd ios xcodebuild -workspace Runner.xcworkspace -scheme Runner -sdk iphoneos -configuration Release archive -archivePath $PWD/build/Runner.xcarchive xcodebuild -exportArchive -archivePath $PWD/build/Runner.xcarchive -exportOptionsPlist exportOptions.plist -exportPath $PWD/build/Runner.ipa