Ai/workflow distribute ios android #107
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: Build & Upload to Firebase iOS App Distribution | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
name: Build and Distribute iOS App | |
runs-on: macos-latest | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2 | |
- name: Install Build Tools | |
run: | | |
brew update # Update Homebrew to ensure we get the latest versions | |
brew install make # Install make if not already installed | |
brew doctor # Run Homebrew diagnostic to ensure everything is set up correctly | |
- name: Install Bundler | |
run: gem install bundler | |
- name: Clear RubyGems Cache | |
run: | | |
rm -rf ~/.bundle/cache | |
- name: Install Dependencies | |
run: | | |
gem install fastlane | |
cd app/ios/fastlane | |
bundle install --retry 3 --jobs 4 | |
env: | |
PATH: /usr/local/bin:$PATH | |
- name: Run Fastlane Increment Version | |
run: | | |
cd app/ios/fastlane | |
fastlane increment_version | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
- name: Run Fastlane Distribute | |
run: | | |
cd app/ios/fastlane | |
fastlane distribute | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} |