Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 37 additions & 6 deletions .github/workflows/deploy_beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,57 @@ permissions:

jobs:
deploy:
runs-on: macos-26
runs-on: ${{ matrix.os }}

strategy:
matrix:
platform: [ ios, android ]
include:
- platform: ios
os: macos-26
- platform: android
os: ubuntu-latest
fail-fast: false

steps:
- uses: actions/checkout@v4

- name: Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
working-directory: ${{ matrix.platform }}
bundler-cache: true

- if: matrix.platform == 'android'
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '21'
cache: 'gradle'

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true

- if: matrix.platform == 'ios'
name: Cache CocoaPods
uses: actions/cache@v4
with:
path: |
ios/Pods
~/.cocoapods
key: ${{ runner.os }}-pods-${{ hashFiles('ios/Podfile.lock') }}
restore-keys: ${{ runner.os }}-pods-

- if: matrix.platform == 'ios'
name: Cache Xcode DerivedData (SPM + compiled pods)
uses: actions/cache@v4
with:
path: ios/DerivedData
key: ${{ runner.os }}-deriveddata-${{ hashFiles('ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved', 'ios/Podfile.lock') }}
restore-keys: ${{ runner.os }}-deriveddata-

- name: Install Flutter Packages
run: |
Expand All @@ -54,7 +85,7 @@ jobs:
name: Build and Deploy With Release Notes to TestFlight
run: |
cd ./ios
fastlane ios_beta
bundle exec fastlane ios_beta
env:
APP_STORE_CONNECT_API_KEY_ID: ${{ secrets.ASC_KEY_ID }}
APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
Expand All @@ -68,7 +99,7 @@ jobs:
name: Build and Deploy to TestFlight
run: |
cd ./ios
fastlane ios_beta
bundle exec fastlane ios_beta
env:
APP_STORE_CONNECT_API_KEY_ID: ${{ secrets.ASC_KEY_ID }}
APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
Expand All @@ -87,7 +118,7 @@ jobs:
name: Deploy to Google Play Store
run: |
cd ./android
fastlane android_beta
bundle exec fastlane android_beta
env:
GOOGLE_PLAY_SERVICE_ACCOUNT_KEY: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_KEY }}
ANDROID_KEYSTORE_FILE: ./upload-keystore
Expand All @@ -99,7 +130,7 @@ jobs:
name: Build Release APK
run: |
cd ./android
fastlane android_apk
bundle exec fastlane android_apk
env:
GOOGLE_PLAY_SERVICE_ACCOUNT_KEY: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_KEY }}
ANDROID_KEYSTORE_FILE: ./upload-keystore
Expand Down
57 changes: 47 additions & 10 deletions .github/workflows/lint_test_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
pull_request:

jobs:
build:
runs-on: macos-26
analyze_and_test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -14,6 +14,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true

- name: Install Flutter Packages
run: flutter pub get
Expand All @@ -24,20 +25,56 @@ jobs:
- name: Run Tests
run: flutter test

- name: Install CocoaPods
run: cd ./ios && pod install
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
include:
- platform: ios
os: macos-26
- platform: android
os: ubuntu-latest
fail-fast: false

steps:
- uses: actions/checkout@v4

- name: Install Java SDK
- if: matrix.platform == 'android'
name: Install Java SDK
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '21'
cache: 'gradle'

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true

- name: Install Flutter Packages
run: flutter pub get

- name: Build iOS
- if: matrix.platform == 'ios'
name: Cache CocoaPods
uses: actions/cache@v4
with:
path: |
ios/Pods
~/.cocoapods
key: ${{ runner.os }}-pods-${{ hashFiles('ios/Podfile.lock') }}
restore-keys: ${{ runner.os }}-pods-

- if: matrix.platform == 'ios'
name: Install CocoaPods
run: cd ./ios && pod install

- if: matrix.platform == 'ios'
name: Build iOS
run: flutter build ipa --no-codesign

- name: Build Android
- if: matrix.platform == 'android'
name: Build Android
run: flutter build apk

#- name: Build Website
# run: flutter build web --base-href /
2 changes: 1 addition & 1 deletion android/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source "https://rubygems.org"

gem "fastlane"
gem "fastlane", ">= 2.236.1"
2 changes: 1 addition & 1 deletion ios/Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source "https://rubygems.org"

gem "fastlane"
gem "fastlane", ">= 2.236.1"
3 changes: 2 additions & 1 deletion ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ platform :ios do
scheme: "Runner",
workspace: "Runner.xcworkspace",
export_method: "app-store",
skip_package_dependencies_resolution: true
skip_package_dependencies_resolution: true,
derived_data_path: "DerivedData"
)

upload_to_testflight(
Expand Down
Loading