add fastlane + github actions for ios
This commit is contained in:
@@ -44,7 +44,35 @@ 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:
|
||||
build_and_deploy_ios:
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Cache RubyGems
|
||||
uses: actions/cache@v1
|
||||
id: rubygem-cache
|
||||
with:
|
||||
path: vendor/bundle
|
||||
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
|
||||
restore-keys: ${{ runner.os }}-gem-
|
||||
- name: Install RubyGems
|
||||
if: steps.rubygem-cache.outputs.cache-hit != 'true'
|
||||
run: bundle install
|
||||
- uses: subosito/[email protected]
|
||||
with:
|
||||
flutter-version: ${{ env.flutter_version }}
|
||||
- name: Flutter setup
|
||||
run: |
|
||||
flutter pub get
|
||||
flutter build ios --release --no-codesign
|
||||
- name: Build
|
||||
env:
|
||||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
|
||||
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
|
||||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
|
||||
run: |
|
||||
cd ios
|
||||
bundle exec fastlane deploy_to_firebase
|
||||
build_and_deploy_android:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -69,7 +97,6 @@ jobs:
|
||||
name: apk-build
|
||||
path: example/build/app/outputs/bundle/release
|
||||
- name: Deploy
|
||||
#if: github.base_ref == 'master'
|
||||
uses: wzieba/[email protected]
|
||||
with:
|
||||
appId: ${{secrets.FIREBASE_ANDROID_APPID}}
|
||||
|
||||
Reference in New Issue
Block a user