more automation
This commit is contained in:
39
frontend/.github/workflows/build_app_android.yaml
vendored
Normal file
39
frontend/.github/workflows/build_app_android.yaml
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macos-lastest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up ruby env
|
||||
uses: ruby/setup-ruby@v1.138.0
|
||||
with:
|
||||
ruby-version: 3.2.1
|
||||
bundler-cache: true
|
||||
|
||||
- name: Setup java for android build
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'zulu'
|
||||
|
||||
- name: Setup android SDK
|
||||
uses: https://github.com/android-actions/setup-android@v3
|
||||
|
||||
- name: Infer version number from git tag
|
||||
id: version
|
||||
env:
|
||||
REF_NAME: ${{ github.ref_name }}
|
||||
run:
|
||||
# remove the 'v' prefix from the tag name
|
||||
echo "VERSION=${REF_NAME//v}" >> $GITHUB_ENV
|
||||
|
||||
- name: Run fastlane lane
|
||||
run: bundle exec fastlane android build
|
||||
working-directory: android
|
||||
env:
|
||||
VERSION_NAME: ${{outputs.version.VERSION}}
|
@@ -32,14 +32,22 @@ platform :android do
|
||||
track: 'alpha',
|
||||
skip_upload_apk: true,
|
||||
skip_upload_changelogs: true,
|
||||
|
||||
)
|
||||
|
||||
end
|
||||
|
||||
desc "Deploy a new version to the Google Play"
|
||||
desc "Deploy a new release to the Google Play"
|
||||
lane :deploy do
|
||||
gradle(task: "clean assembleRelease")
|
||||
upload_to_play_store
|
||||
gradle(
|
||||
task: "clean assembleRelease",
|
||||
properties: {
|
||||
# loaded from environment
|
||||
android.injected.version.name: ENV["VERSION_NAME"],
|
||||
}
|
||||
)
|
||||
upload_to_play_store(
|
||||
track: "production",
|
||||
skip_upload_apk: true,
|
||||
skip_upload_changelogs: true,
|
||||
)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user