Skip to content

Commit

Permalink
add workflow and fastlane
Browse files Browse the repository at this point in the history
  • Loading branch information
aidaiym committed Jul 31, 2024
1 parent c589dd5 commit 645d53f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/app_distribution_ios.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Build & upload to Firebase IOS App Distribution
name: Build & Upload to Firebase iOS App Distribution

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
name: Build and Distribute iOS App
Expand All @@ -17,13 +18,16 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
ruby-version: 3.2

- name: Clear gem cache
run: gem install bundler && bundle cache clean

- name: Install Fastlane and Dependencies
run: |
gem install fastlane
cd app/ios/fastlane
bundle install
bundle install --retry 3 --jobs 4 # Retry and use multiple jobs to speed up installation
env:
PATH: /usr/local/bin:$PATH

Expand All @@ -32,11 +36,11 @@ jobs:
cd app/ios/fastlane
fastlane increment_version
# env:
# FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
# FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

- name: Run Fastlane Distribute
run: |
cd app/ios/fastlane
fastlane distribute
# env:
# FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
# FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}

0 comments on commit 645d53f

Please sign in to comment.