build: fix staging check
Some checks failed
TrafficCue CI / check (push) Successful in 57s
TrafficCue CI / build (push) Successful in 1m25s
TrafficCue CI / build-android (push) Failing after 16m3s

This commit is contained in:
2025-09-07 18:12:16 +02:00
parent 18fea5a0ad
commit f1d89d31b6

View File

@ -33,7 +33,7 @@ jobs:
echo "$SSH_KEY" > private_key echo "$SSH_KEY" > private_key
chmod 600 private_key chmod 600 private_key
if [ "${gitea.ref_name##*/}" = "main" ]; then if [ "${{ gitea.ref_name }}" = "main" ]; then
TARGET_PATH=$DEPLOY_PATH_MAIN TARGET_PATH=$DEPLOY_PATH_MAIN
else else
TARGET_PATH=$DEPLOY_PATH_STAGING TARGET_PATH=$DEPLOY_PATH_STAGING
@ -81,24 +81,23 @@ jobs:
cd ../../.. # Go back to root cd ../../.. # Go back to root
- name: Build app bundle - name: Build app bundle
run: | run: |
if [ "${gitea.ref_name##*/}" = "main" ]; then if [ "${{ gitea.ref_name }}" = "main" ]; then
bun tauri android build -v --apk bun tauri android build -v --apk
elif [ "${gitea.ref_name##*/}" = "staging" ]; then elif [ "${{ gitea.ref_name }}" = "staging" ]; then
bun tauri android build -v --apk -d bun tauri android build -v --apk -d
else else
echo "Branch not main or staging, skipping build." echo "Branch not main or staging, skipping build."
fi 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 release apk
if: ${{ endsWith(gitea.ref_name, 'main') }} if: ${{ gitea.ref_name == "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 debug apk
- name: Upload apk if: ${{ gitea.ref_name == "staging" }}
if: ${{ endsWith(gitea.ref_name, 'staging') }}
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: trafficcue-staging.apk name: trafficcue-staging.apk