Skip to content

Commit aef3d5b

Browse files
committed
chore: try publish expo build with firebase
1 parent 62b2778 commit aef3d5b

File tree

6 files changed

+68
-48
lines changed

6 files changed

+68
-48
lines changed

.github/actions/eas-deploy-android/action.yml

-8
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,3 @@ runs:
9898
eas build --platform android --profile=production --non-interactive --auto-submit
9999
fastlane run distribute_android
100100
shell: bash
101-
102-
- name: Firebase App Distribution
103-
run: |
104-
echo "${{ inputs.FIREBASE_TOKEN }}" > $HOME/.firebase_token
105-
firebase appdistribution:distribute leather.apks --app "1:915379517791:android:d4e7cb446a612f8c789eea" --groups "leatherhood"
106-
shell: bash
107-
env:
108-
FIREBASE_TOKEN: ${{ inputs.FIREBASE_TOKEN }}

.github/workflows/firebase-deploy.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Android Development Build
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
workflow_dispatch:
8+
inputs:
9+
FIREBASE_TOKEN:
10+
required: true
11+
type: string
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Setup repo
18+
uses: actions/checkout@v4
19+
20+
- name: Setup node
21+
uses: actions/[email protected]
22+
with:
23+
node-version: 18.x
24+
cache: 'npm'
25+
26+
- name: Set up JDK 17
27+
uses: actions/setup-java@v4
28+
with:
29+
java-version: '17'
30+
distribution: 'temurin'
31+
32+
- name: Setup Android SDK
33+
uses: android-actions/setup-android@v3
34+
35+
- name: Setup Expo
36+
uses: expo/expo-github-action@v8
37+
with:
38+
expo-version: latest
39+
eas-version: latest
40+
token: ${{ secrets.EXPO_TOKEN }}
41+
42+
- name: Install dependencies
43+
run: npm ci
44+
45+
- name: Build Android app
46+
run: eas build --platform android --profile development --local --output ${{ github.workspace }}/app-release.apk
47+
48+
- name: Upload APK artifact
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: app-release
52+
path: ${{ github.workspace }}/app-release.apk
53+
54+
- name: Install Firebase CLI
55+
run: npm install -g firebase-tools
56+
57+
- name: Firebase App Distribution
58+
run: |
59+
firebase appdistribution:distribute ${{ github.workspace }}/app-release.apk \
60+
--app "1:915379517791:android:d4e7cb446a612f8c789eea" \
61+
--groups "leatherhood" \
62+
--token "${{ inputs.FIREBASE_TOKEN }}"
63+
shell: bash

apps/mobile/android/Gemfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
source "https://rubygems.org"
22

3-
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4-
5-
gem "fastlane", "~> 2.226"
3+
gem "fastlane"

apps/mobile/android/Gemfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ GEM
1010
artifactory (3.0.17)
1111
atomos (0.1.3)
1212
aws-eventstream (1.3.0)
13-
aws-partitions (1.1033.0)
13+
aws-partitions (1.1034.0)
1414
aws-sdk-core (3.214.1)
1515
aws-eventstream (~> 1, >= 1.3.0)
1616
aws-partitions (~> 1, >= 1.992.0)
@@ -215,7 +215,7 @@ PLATFORMS
215215
ruby
216216

217217
DEPENDENCIES
218-
fastlane (~> 2.226)
218+
fastlane
219219

220220
BUNDLED WITH
221221
2.1.4

apps/mobile/android/fastlane/Fastfile

-33
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,5 @@
11
default_platform(:android)
22

3-
# platform :android do
4-
# desc "Deploy a new version to the Google Play Beta track"
5-
# lane :beta do
6-
# # Grab the latest build number from the Play Store
7-
# previous_build_number = google_play_track_version_codes(
8-
# track: "internal",
9-
# json_key: ENV['GOOGLE_SERVICES_JSON']
10-
# )[0]
11-
12-
# # Increment the build number
13-
14-
# # Build a release version of the app
15-
# gradle(
16-
# task: "clean assembleRelease",
17-
# print_command: false,
18-
# properties: {
19-
# "android.injected.signing.store.file" => "#{Dir.pwd}/example-app.keystore",
20-
# "android.injected.signing.store.password" => ENV["ANDROID_SIGNING_KEY_PASSWORD"],
21-
# # replace alias with your signing key alias
22-
# "android.injected.signing.key.alias" => "[example-app]",
23-
# "android.injected.signing.key.password" => ENV["ANDROID_SIGNING_KEY_PASSWORD"],
24-
# }
25-
# )
26-
27-
# # Upload the app to the Play Store
28-
# upload_to_play_store(
29-
# track: "internal",
30-
# json_key: ENV['GOOGLE_SERVICES_JSON']
31-
# )
32-
# end
33-
# end
34-
35-
# original approach from the docs
363
platform :android do
374
desc "Build and distribute Android app"
385
lane :distribute_android do

apps/mobile/ios/Gemfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ GEM
174174
optparse (0.6.0)
175175
os (1.1.4)
176176
plist (3.7.1)
177-
public_suffix (6.0.1)
177+
public_suffix (5.1.1)
178178
rake (13.2.1)
179179
representable (3.2.0)
180180
declarative (< 0.1.0)
@@ -227,4 +227,4 @@ DEPENDENCIES
227227
fastlane-plugin-firebase_app_distribution
228228

229229
BUNDLED WITH
230-
2.5.23
230+
2.4.22

0 commit comments

Comments
 (0)