Skip to content

Commit

Permalink
Update build-and-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
octoshrimpy authored Nov 26, 2023
1 parent 37fdd25 commit 106cc5c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,36 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Set execution flag for gradlew
run: chmod +x gradlew

- name: Decode Keystore File
run: echo "${{ secrets.KEYSTORE_FILE }}" | base64 -d > my-release-key.keystore

- name: Build APK
run: ./gradlew assembleRelease --stacktrace
run: ./gradlew assembleDebug \
-Pandroid.injected.signing.store.file=my-release-key.keystore \
-Pandroid.injected.signing.store.password=${{ secrets.KEYSTORE_PASSWORD }} \
-Pandroid.injected.signing.key.alias=${{ secrets.KEY_ALIAS }} \
-Pandroid.injected.signing.key.password=${{ secrets.KEY_PASSWORD }} \
--stacktrace

- name: Rename APK
run: mv presentation/build/outputs/apk/noAnalytics/debug/QKSMS-v*-noAnalytics-debug.apk presentation/build/outputs/apk/noAnalytics/debug/QKSMS-noAnalytics-debug.apk

- name: Upload APK
uses: actions/upload-artifact@v3

with:
name: apk

path: presentation/build/outputs/apk/noAnalytics/debug/QKSMS-noAnalytics-debug.apk

release:
Expand Down

0 comments on commit 106cc5c

Please sign in to comment.