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 }}