MacOS App Store #30
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: MacOS App Store | |
on: | |
release: | |
types: [ published ] | |
workflow_dispatch: | |
inputs: | |
upload: | |
description: 'Upload to App Store?' | |
type: boolean | |
required: true | |
default: true | |
fast: | |
description: 'Use fast mode for building?' | |
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 mac build_app_store fast:${{ inputs.fast || github.event_name == 'release' }} | |
- name: Upload to App Store | |
if: ${{ inputs.upload || github.event_name == 'release' }} | |
run: fastlane mac upload | |
- name: Upload .App Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
path: TargetMate.app | |
if-no-files-found: error | |
retention-days: 5 | |
- name: Upload .pkg Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
path: TargetMate.pkg | |
if-no-files-found: error | |
retention-days: 5 |