Skip to content

Commit

Permalink
Build debug builds on test branches and forks
Browse files Browse the repository at this point in the history
  • Loading branch information
hufman committed Feb 14, 2024
1 parent c03d17d commit f1dad57
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,15 @@ jobs:
uses: gradle/wrapper-validation-action@v1

- name: Extract signing key
if: github.repository == 'BimmerGestalt/IDriveConnectAddons' && github.ref == 'refs/heads/main'
run: "echo '${{ secrets.KEYSTORE_BASE64 }}' | base64 -d > keystore.jks"

- name: Build the project
- name: Build the project (debug mode)
if: github.repository != 'BimmerGestalt/IDriveConnectAddons' || github.ref != 'refs/heads/main'
run: ./gradlew assembleDebug

- name: Build the project (release mode)
if: github.repository == 'BimmerGestalt/IDriveConnectAddons' && github.ref == 'refs/heads/main'
run: ./gradlew assembleRelease
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
Expand Down

0 comments on commit f1dad57

Please sign in to comment.