Skip to content

Version 0.0.239

Version 0.0.239 #257

Workflow file for this run

name: 🚀 Build release
on:
push:
tags:
- v**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: gradle
- name: Set up ruby env
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
bundler-cache: true
- name: Decode Service Account Key JSON File
uses: timheuer/base64-to-file@v1
id: service_account_json_file
with:
fileName: "serviceAccount.json"
encodedString: ${{ secrets.GOOGLE_JSON }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Create local properties
run: touch local.properties
- name: Decode Keystore
env:
ENCODED_STRING: ${{ secrets.KEYSTORE }}
run: |
mkdir app/keystore
echo $ENCODED_STRING | base64 -di > app/keystore/keystore.jks
- name: Decode Google Services json
env:
ENCODED_STRING: ${{ secrets.GOOGLE_SERVICES }}
run: |
echo $ENCODED_STRING | base64 -di > app/google-services.json
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Build & deploy Android release
run: bundle exec fastlane android deploy
env:
BUGSNAG_API_KEY: ${{ secrets.BUGSNAG_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }}
KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
MAPBOX_DOWNLOADS_TOKEN: ${{ secrets.MAPBOX_DOWNLOADS_TOKEN }}
MAPBOX_API_KEY: ${{ secrets.MAPBOX_API_KEY }}
MAPS_API_KEY: ${{ secrets.MAPS_API_KEY }}
MAPLIBRE_API_KEY: ${{ secrets.MAPLIBRE_API_KEY }}
ANDROID_JSON_KEY_FILE: ${{ steps.service_account_json_file.outputs.filePath }}
# - name: Build with Gradle
# run: ./gradlew app:bundleRelease
# env:
# KEYSTORE_PASS: ${{ secrets.KEYSTORE_PASS }}
# KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }}
# MAPBOX_DOWNLOADS_TOKEN: ${{ secrets.MAPBOX_DOWNLOADS_TOKEN }}
#
- name: Archive extra files
uses: actions/upload-artifact@v4
if: always()
with:
name: bundle
path: |
app/build/outputs/mapping/release/missing_rules.txt
app/build/outputs/mapping/**