Release v0.8.0 #21
Workflow file for this run
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 App Store | |
on: | |
release: | |
types: [ published ] | |
workflow_dispatch: | |
inputs: | |
upload: | |
description: 'Upload to App Store?' | |
type: boolean | |
required: true | |
default: true | |
env: | |
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} | |
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | |
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_KEY_ID }} | |
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_ISSUE_ID }} | |
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_API_KEY_P8 }} | |
jobs: | |
release: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Xcode version | |
uses: maxim-lobanov/[email protected] | |
with: | |
xcode-version: latest-stable | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
cache: true | |
- name: Flutter version | |
run: flutter --version | |
- name: Install fastlane | |
run: brew install fastlane | |
- name: Fastlane version | |
run: fastlane --version | |
- name: Install Bundler | |
run: gem install bundler | |
- name: Get gem dependencies. | |
run: bundle install | |
- name: Run Fastlane Build | |
run: fastlane ios build | |
- name: Upload to App Store | |
if: ${{ inputs.upload || github.event_name == 'release' }} | |
run: fastlane ios upload | |
- name: Upload .ipa Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
path: Runner.ipa | |
if-no-files-found: error | |
retention-days: 5 | |
- name: Upload archive Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
path: build/ios/archive/Runner.xcarchive | |
if-no-files-found: error | |
retention-days: 5 |