chore: upgrade dependencies #357
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ios | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
env: | |
flutter_version: '3.16.0' | |
jobs: | |
# Since Fastlane also builds, there is no way to split jobs without sacrificing build time | |
test-build-deploy: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Flutter environment | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.flutter_version }} | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Building generated source code | |
run: dart run build_runner build | |
- name: Analyze code | |
run: flutter analyze . | |
- name: Run tests | |
run: flutter test --no-pub -r expanded | |
- name: Build iOS application | |
run: flutter build ios --release --no-codesign | |
- name: Prepare for deploy | |
if: github.ref_type == 'tag' | |
env: | |
APPSTORE_APIKEY: ${{ secrets.IOS_APPSTORE_APIKEY }} | |
run: | | |
cd ios | |
echo "${APPSTORE_APIKEY}" | base64 -d >fastlane/AuthKey.p8 | |
- name: Setup Ruby environment | |
if: github.ref_type == 'tag' | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '2.6' | |
- name: Install Fastlane | |
if: github.ref_type == 'tag' | |
run: gem install fastlane -N | |
- name: Build and deploy to App Store | |
if: github.ref_type == 'tag' | |
env: | |
MATCH_APPSTORE_USERNAME: ${{ secrets.IOS_MATCH_APPSTORE_USERNAME }} | |
MATCH_PASSWORD: ${{ secrets.IOS_MATCH_PASSWORD }} | |
MATCH_GIT_AUTHORIZATION: ${{ secrets.IOS_MATCH_GIT_AUTHORIZATION }} | |
run: | | |
cd ios | |
fastlane deploy_production |