build: add debug builds on staging
Some checks failed
TrafficCue CI / check (push) Successful in 1m15s
TrafficCue CI / build (push) Successful in 1m37s
TrafficCue CI / build-android (push) Failing after 3m47s

This commit is contained in:
2025-09-07 17:54:35 +02:00
parent 5d386fa7a5
commit 9eb9ba3b82

View File

@ -80,11 +80,26 @@ jobs:
echo "Keystore properties created."
cd ../../.. # Go back to root
- name: Build app bundle
run: bun tauri android build -v --apk
run: |
if [ "${GITEA_REF##*/}" = "main" ]; then
bun tauri android build -v --apk
elif [ "${GITEA_REF##*/}" = "staging" ]; then
bun tauri android build -v --apk -d
else
echo "Branch not main or staging, skipping build."
fi
env:
NDK_HOME: ${{ env.ANDROID_HOME }}/ndk/27.0.11902837
- name: Upload apk
if: ${{ endsWith(GITEA_REF, '/main') }}
uses: actions/upload-artifact@v3
with:
name: trafficcue.apk
path: ./src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release.apk
- name: Upload apk
if: ${{ endsWith(GITEA_REF, '/staging') }}
uses: actions/upload-artifact@v3
with:
name: trafficcue-staging.apk
path: ./src-tauri/gen/android/app/build/outputs/apk/universal/debug/app-universal-debug.apk