🍏🚀 Deploy to appstore #10
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: Deploy WhatTodo app to appstore | |
on: | |
workflow_dispatch: | |
jobs: | |
deployIos: | |
runs-on: macos-latest | |
env: | |
ASC_JSON_KEY: ${{ secrets.ASC_JSON_KEY }} | |
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.APPLE_PASSWORD }} | |
steps: | |
- name: ⬇️ Checkout repository | |
uses: actions/checkout@v3 | |
- name: ⚙️ Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.22.0" | |
channel: 'stable' | |
cache: true | |
id: flutter | |
- name: 📦 Get Packages | |
run: flutter pub get | |
- name: Setup Fastlane | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.3" | |
bundler-cache: true | |
working-directory: ios | |
- name: Setup app store connect | |
run: echo "$ASC_JSON_KEY" >> ./ios/fastlane/store.json | |
- name: Install pod | |
run: cd ios && pod install | |
- name: Build and Deploy to TestFlight | |
env: | |
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | |
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} | |
run: | | |
cd ./ios | |
bundle exec fastlane ios beta |