anyway/frontend/.github/workflows/build_app_android.yaml
2024-09-10 10:12:53 +02:00

40 lines
966 B
YAML

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}}