feat: release build workflow

This commit is contained in:
Ushie 2022-09-22 14:41:29 +03:00
parent 335e2cb272
commit 09e1082c5e
No known key found for this signature in database
GPG Key ID: 0EF73F1CA38B2D5F
3 changed files with 47 additions and 1 deletions

43
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,43 @@
name: Android Release
on:
push:
branches: [ "compose" ]
pull_request:
branches: [ "compose" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew assembleRelease
- name: Sign APK
id: sign_apk
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: ./app/build/outputs/apk/release/
signingKeyBase64: ${{ secrets.SIGNING_KEYSTORE }}
keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }}
alias: ${{ secrets.SIGNING_KEY_ALIAS }}
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
- name: Upload APK
uses: actions/upload-artifact@v2
with:
name: manager
path: ${{steps.sign_apk.outputs.signedReleaseFile}}

View File

@ -50,5 +50,8 @@
-keep class org.jf.** { -keep class org.jf.** {
*; *;
} }
-keep class com.android.** {
*;
}
-keepattributes RuntimeVisibleAnnotations,AnnotationDefault -keepattributes RuntimeVisibleAnnotations,AnnotationDefault

BIN
gradle/wrapper/gradle-wrapper.jar vendored Normal file

Binary file not shown.