Skip to content

Commit

Permalink
build debug with release sign
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhikang0916 committed Dec 10, 2023
1 parent 472dab9 commit ce7d5d9
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build_debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Upload Android Release APK
on:
push:
branches:
- main
jobs:
build_and_upload_apk:
runs-on: ubuntu-latest
environment: Build release
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/[email protected]
with:
java-version: '17'
- name: Grant execute permission to gradlew
run: chmod +x gradlew
- name: Restore key_store file from Base64
id: decode_key_store
uses: timheuer/[email protected]
with:
encodedString: ${{ secrets.KEY_STORE_FILE_BASE64 }}
fileName: release.keystore
- name: Build release APK
run: ./gradlew assembleDebug
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS_PASSWORD: ${{ secrets.KEY_ALIAS_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEYSTORE_FILE: ${{ steps.decode_key_store.outputs.filePath }}
- name: Upload APK files
uses: actions/[email protected]
with:
name: Debug
path: |
app/build/outputs/apk/debug/*.apk
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ android {
buildTypes {
debug {
debuggable true
signingConfig signingConfigs.release
}
release {
signingConfig signingConfigs.release
Expand Down

0 comments on commit ce7d5d9

Please sign in to comment.