From 09964fe372e34816f4b9977d41cafe7d734123b2 Mon Sep 17 00:00:00 2001 From: Walter Huf Date: Tue, 13 Feb 2024 18:07:29 -0800 Subject: [PATCH] Build debug builds on test branches and forks --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0b32d46..bfc4c8c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,7 +31,12 @@ jobs: - name: Extract signing key run: "echo '${{ secrets.KEYSTORE_BASE64 }}' | base64 -d > keystore.jks" - - name: Build the project + - name: Build the project (debug mode) + if: github.repository != 'BimmerGestalt/AAIdrive' || github.ref != "refs/heads/main" + run: ./gradlew assembleDebug + + - name: Build the project (release mode) + if: github.repository == 'BimmerGestalt/AAIdrive' && github.ref == "refs/heads/main" run: ./gradlew assembleRelease env: KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}