Skip to content

Commit dfa0d1e

Browse files
authoredJun 23, 2024
chore: setup fastlane (#2495)
1 parent 08237ec commit dfa0d1e

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed
 

‎.github/workflows/push-event.yml

+21
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@ jobs:
2828
restore-keys: |
2929
${{ runner.os }}-gradle-
3030
31+
- name: Setup Ruby
32+
if: ${{ github.repository == 'fossasia/pslab-android' }}
33+
uses: ruby/setup-ruby@v1
34+
with:
35+
ruby-version: '3.3'
36+
bundler-cache: true
37+
38+
- name: Prepare Bundler
39+
if: ${{ github.repository == 'fossasia/pslab-android' }}
40+
run: |
41+
bundle config path vendor/bundle
42+
bundle install --jobs 4 --retry 3
43+
3144
- name: Setup Java
3245
uses: actions/setup-java@v3
3346
with:
@@ -133,6 +146,14 @@ jobs:
133146
git branch -m apk
134147
git push --force origin apk
135148
149+
- name: Update app in Open Testing track
150+
if: ${{ github.repository == 'fossasia/pslab-android' }}
151+
run: |
152+
bundle exec fastlane uploadToOpenTesting
153+
if [[ $? -ne 0 ]]; then
154+
exit 1
155+
fi
156+
136157
- name: Run Release Drafter
137158
uses: release-drafter/release-drafter@v6
138159
with:

‎Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gem "fastlane"

‎fastlane/Appfile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
json_key_file("./scripts/fastlane.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
2+
package_name("io.pslab") # e.g. com.krausefx.app

‎fastlane/Fastfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
default_platform(:android)
2+
platform :android do
3+
lane :uploadToOpenTesting do
4+
upload_to_play_store(track: "beta",aab:"app/build/outputs/bundle/release/app-release.aab")
5+
end
6+
end

0 commit comments

Comments
 (0)