diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8bd39ff84..a71b726fa 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -132,20 +132,57 @@ jobs: - name: Get Tag Name id: tag_name run: echo "::set-output name=tag::$(echo ${GITHUB_REF#refs/tags/})" - - name: Deploy Android Release + - name: Copy aab file to build dir run: | mkdir -p build/android cp build/app/outputs/bundle/release/app-release.aab build/android/ - cd android - bundle install - bundle update fastlane - bundle exec fastlane deploy_internal_test + - name: Update fastlane + run: bundle install && bundle update fastlane + working-directory: android + - name: Deploy to Internal test + working-directory: android + run: bundle exec fastlane deploy_internal_test + - name: Deploy Android Release + working-directory: android + run: | if [[ $GITHUB_REF_NAME == rc* ]]; then bundle exec fastlane deploy_candidate else bundle exec fastlane deploy_release fi - cd .. + + deploy_testflight: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - run: cat .github/workflows/versions.env >> $GITHUB_ENV + - uses: subosito/flutter-action@v2 + with: + flutter-version: ${{ env.FLUTTER_VERSION }} + cache: true + - name: Setup Xcode version + uses: maxim-lobanov/setup-xcode@v1.5.1 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7 + - run: gem install fastlane -NV + - name: Apply Google Services Patch + run: git apply ./scripts/enable-android-google-services.patch + - run: flutter pub get + - name: Update fastlane + run: bundle install && bundle update fastlane + working-directory: ios + - name: Import iOS Certificates + run: print('TODO') # https://docs.github.com/en/actions/deployment/deploying-xcode-applications/installing-an-apple-certificate-on-macos-runners-for-xcode-development + - name: Install Cocoapod Dependencies + working-directory: ios + run: pod install + - name: Push a new beta build to TestFlight + working-directory: ios + env: + FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }} + run: bundle exec fastlane beta promote_snapcraft: runs-on: ubuntu-latest diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index c2bac8f3e..b1a04f127 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -27,7 +27,7 @@ platform :ios do version_name = config.match(re).captures[0] increment_version_number(version_number: version_name) build_app(workspace: "Runner.xcworkspace", scheme: "Runner") - upload_to_testflight(distribute_external: true, groups: "FluffyChat Betatest") + upload_to_testflight(distribute_external: true, groups: "FluffyChat Betatest", changelog: "Bugfixes and performance improvements.") end end diff --git a/ios/fastlane/README.md b/ios/fastlane/README.md index c7d6f9135..a57c8d1fe 100644 --- a/ios/fastlane/README.md +++ b/ios/fastlane/README.md @@ -1,37 +1,43 @@ fastlane documentation -================ +---- + # Installation Make sure you have the latest version of the Xcode command line tools installed: -``` +```sh xcode-select --install ``` -Install _fastlane_ using -``` -[sudo] gem install fastlane -NV -``` -or alternatively using `brew install fastlane` +For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane) # Available Actions + ### release + +```sh +[bundle exec] fastlane release ``` -fastlane release -``` + ---- + ## iOS + ### ios beta + +```sh +[bundle exec] fastlane ios beta ``` -fastlane ios beta -``` + Push a new beta build to TestFlight ---- -This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run. -More information about fastlane can be found on [fastlane.tools](https://fastlane.tools). -The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools). +This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run. + +More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools). + +The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools). diff --git a/ios/fastlane/report.xml b/ios/fastlane/report.xml index aa3917be7..a3f514330 100644 --- a/ios/fastlane/report.xml +++ b/ios/fastlane/report.xml @@ -5,22 +5,32 @@ - + - + - + - + + + + + + + + + + + diff --git a/scripts/release-ios-testflight.sh b/scripts/release-ios-testflight.sh deleted file mode 100755 index a30d3e5a4..000000000 --- a/scripts/release-ios-testflight.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -ve -git apply ./scripts/enable-android-google-services.patch -flutter clean -flutter pub get -cd ios -rm -rf Pods -rm -f Podfile.lock -arch -x86_64 pod install -arch -x86_64 pod update -cd .. -flutter build ios --release -cd ios -bundle update fastlane -bundle exec fastlane beta -cd .. \ No newline at end of file diff --git a/scripts/update-dependencies.sh b/scripts/update-dependencies.sh deleted file mode 100755 index 5f783fc55..000000000 --- a/scripts/update-dependencies.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -ve -flutter pub upgrade --major-versions -flutter pub get -dart fix --apply -flutter format lib test -flutter pub run import_sorter:main --no-comments \ No newline at end of file