mirror of
https://github.com/awfixers-stuff/OwnDroid.git
synced 2026-03-23 11:05:59 +00:00
ci: build signed apk
Co-authored-by: MinoriceOwO <154642983+minoriceowo@users.noreply.github.com>
This commit is contained in:
35
.github/workflows/build.yml
vendored
35
.github/workflows/build.yml
vendored
@@ -26,20 +26,41 @@ jobs:
|
||||
- name: Grant execution permission to Gradle Wrapper
|
||||
run: chmod +x gradlew
|
||||
|
||||
- name: Build Debug APK
|
||||
run: ./gradlew assembleDebug
|
||||
- name: Build APK (testkey)
|
||||
run: ./gradlew build
|
||||
|
||||
- name: Upload Debug APK
|
||||
- name: Upload Debug APK (testkey)
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: OwnDroid-CI-${{ env.SHORT_SHA }}-debug-testkey.apk
|
||||
path: app/build/outputs/apk/debug/app-debug.apk
|
||||
|
||||
- name: Build Release APK
|
||||
run: ./gradlew assembleRelease
|
||||
|
||||
- name: Upload Release APK
|
||||
- name: Upload Release APK (testkey)
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: OwnDroid-CI-${{ env.SHORT_SHA }}-release-testkey.apk
|
||||
path: app/build/outputs/apk/release/app-release.apk
|
||||
|
||||
- name: Export key
|
||||
env:
|
||||
KEY_BASE64: ${{ secret.KEY_BASE64 }}
|
||||
run: echo $KEY_BASE64 | base64 --decode - > app/signature.jks
|
||||
|
||||
- name: Build APK
|
||||
env:
|
||||
KEYSTORE_PASSWORD: ${{ secret.KEYSTORE_PASSWORD }}
|
||||
KEY_PASSWORD: ${{ secret.KEY_PASSWORD }}
|
||||
KEY_ALIAS: ${{ secret.KEY_ALIAS }}
|
||||
run: ./gradlew build
|
||||
|
||||
- name: Upload Debug APK
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: OwnDroid-CI-${{ env.SHORT_SHA }}-debug-signed.apk
|
||||
path: app/build/outputs/apk/debug/app-debug.apk
|
||||
|
||||
- name: Upload Release APK
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: OwnDroid-CI-${{ env.SHORT_SHA }}-release-signed.apk
|
||||
path: app/build/outputs/apk/debug/app-debug.apk
|
||||
|
||||
Reference in New Issue
Block a user