Skip to content

Ai/workflow distribute ios android #109

Ai/workflow distribute ios android

Ai/workflow distribute ios android #109

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'
bundler-cache: true # Enable caching for bundle install results
working-directory: app/ios/fastlane # Set the working directory to the location of the Gemfile
- name: Install Dependencies
run: bundle install --retry 3 --jobs 4
working-directory: app/ios/fastlane # Ensure the Bundler command is run in the correct directory
- name: Run Fastlane Increment Version
uses: maierj/[email protected]
with:
lane: 'increment_version'
subdirectory: 'app/ios/fastlane'
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
- name: Run Fastlane Distribute
uses: maierj/[email protected]
with:
lane: 'distribute'
subdirectory: 'app/ios/fastlane'
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}