more automation

This commit is contained in:
2024-09-10 10:12:53 +02:00
parent 0ae20e4995
commit b11f082803
4 changed files with 456 additions and 5 deletions

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