Android App Release Build #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android App Release Build | |
on: | |
push: | |
tags: | |
- 'android/v[0-9]+.[0-9]+.[0-9]+-[0-9]+' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup repo | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./tooling/github/setup | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v3 | |
- name: Setup Expo | |
uses: expo/expo-github-action@v8 | |
with: | |
expo-version: latest | |
eas-version: latest | |
token: ${{ secrets.EXPO_TOKEN }} | |
- name: Build Android app | |
working-directory: apps/mobile | |
run: eas build --platform android --local --output ${{ github.workspace }}/app-release.aab | |
- name: Upload AAB artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: hoarder-android | |
path: ${{ github.workspace }}/app-release.aab |