Skip to content

Android App APK Build #16

Android App APK Build

Android App APK Build #16

Workflow file for this run

name: Android App APK Build
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- 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: Get version from app.json
id: get_version
run: |
VERSION=$(node -p "require('./app.json').expo.version")
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build Android app
run: eas build --platform android --profile production --local --output ${{ github.workspace }}/spotify_light_${{ env.VERSION }}.apk
- name: Upload APK artifact
uses: actions/upload-artifact@v4
with:
name: app-release
path: ${{ github.workspace }}/spotify_light_${{ env.VERSION }}.apk
- name: Release
uses: softprops/action-gh-release@v2
with:
files: ${{ github.workspace }}/spotify_light_${{ env.VERSION }}.apk
tag_name: v${{ env.VERSION }}