52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
name: Luggage List Manual APK Build
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-android:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: 🏗 Setup repo
|
|
uses: actions/checkout@v4
|
|
|
|
- name: 🏗 Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: pnpm
|
|
|
|
- name: 🏗 Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: latest
|
|
|
|
- name: 🏗 Setup Java
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: 17
|
|
|
|
- name: 🏗 Setup Android SDK
|
|
uses: android-actions/setup-android@v3
|
|
|
|
- name: 📦 Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: 🧱 Generate native Android project
|
|
run: npx expo prebuild --platform android --non-interactive
|
|
|
|
- name: 👷 Build release APK
|
|
run: |
|
|
cd android
|
|
./gradlew assembleRelease --no-daemon
|
|
|
|
- name: 📝 Rename build to APK
|
|
run: cp android/app/build/outputs/apk/release/app-release.apk luggage-list-manual.apk
|
|
|
|
- name: 📤 Upload build artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: luggage-list-manual-apk-build
|
|
path: luggage-list-manual.apk
|
|
if-no-files-found: error
|