anyway/frontend/.github/workflows/build_app_android.yaml
Remy Moll eedffc7697
Some checks failed
/ push-to-remote (push) Has been cancelled
fix remote repo pushing
2024-09-19 18:44:34 +02:00

47 lines
1.2 KiB
YAML

on:
push:
branches:
- main
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- 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: 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_OUTPUT
- name: Load secrets from github
run: |
echo ${{ secrets.ANDROID_SECRET_PROPERTIES }} > secrets.properties
echo ${{ secrets.ANDROID_KEYSTORE }} > release.keystore
echo ${{ secrets.ANDROID_GOOGLE_PLAY_JSON }} > google-key.json
working-directory: android
- name: Run fastlane lane
run: bundle exec fastlane deploy
working-directory: android
env:
VERSION_NAME: ${{ steps.version.VERSION }}