Skip to content

Commit

Permalink
Merge pull request #2397 from CruGlobal/GT-github-actions-firebase-st…
Browse files Browse the repository at this point in the history
…aging-deploy

GT GitHub actions firebase staging deploy
  • Loading branch information
levieggertcru authored Jan 10, 2025
2 parents 2789a2e + 56c56e7 commit f3ae67d
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/firebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Distribute To Firebase

on:
push:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
distribute_to_firebase:
runs-on: macos-15
env:
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 60
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Pod Install
uses: ./.github/actions/pod-install

- name: Import App Store Connect API Key
env:
APP_STORE_CONNECT_API_JSON_PAYLOAD: ${{ secrets.APP_STORE_CONNECT_API_JSON_PAYLOAD }}
run: echo $APP_STORE_CONNECT_API_JSON_PAYLOAD > fastlane/AppleAppStoreApi.json

- name: Increment Xcode Project Build Number
run: bundle exec fastlane cru_shared_lane_increment_xcode_project_build_number_from_latest_firebase_distribution firebase_googleservice_info_plist_path:"godtools/GoogleService-Info-Debug.plist"

- name: Build And Deploy For Firebase Distribution
env:
MATCH_GIT_BASIC_AUTHORIZATION_PAT: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION_PAT }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
run: bundle exec fastlane cru_shared_lane_build_and_deploy_for_testflight_release is_running_in_ci:true gym_destination:generic/platform=iOS distribute_to_firebase:true distribute_to_testflight:false firebase_googleservice_info_plist_path:"godtools/GoogleService-Info-Debug.plist" firebase_groups:"ios-testers"

- name: Archive Fastlane Gym Logs
if: always()
uses: actions/upload-artifact@v4
with:
name: fastlane-gym-logs
path: "/Users/runner/Library/Logs/gym/godtools-*/**"

0 comments on commit f3ae67d

Please sign in to comment.