build: add debug builds on staging
This commit is contained in:
@ -80,11 +80,26 @@ jobs:
|
|||||||
echo "Keystore properties created."
|
echo "Keystore properties created."
|
||||||
cd ../../.. # Go back to root
|
cd ../../.. # Go back to root
|
||||||
- name: Build app bundle
|
- 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:
|
env:
|
||||||
NDK_HOME: ${{ env.ANDROID_HOME }}/ndk/27.0.11902837
|
NDK_HOME: ${{ env.ANDROID_HOME }}/ndk/27.0.11902837
|
||||||
- name: Upload apk
|
- name: Upload apk
|
||||||
|
if: ${{ endsWith(GITEA_REF, '/main') }}
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: trafficcue.apk
|
name: trafficcue.apk
|
||||||
path: ./src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release.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
|
||||||
|
|||||||
Reference in New Issue
Block a user