mirror of
https://github.com/KoalaSat/nostros.git
synced 2024-09-28 22:30:41 +00:00
Create release certificate (#600)
This commit is contained in:
commit
056206bcc6
3
.github/workflows/android-build.yml
vendored
3
.github/workflows/android-build.yml
vendored
@ -26,6 +26,9 @@ jobs:
|
||||
- name: Setup Gradle
|
||||
uses: gradle/gradle-build-action@v2
|
||||
|
||||
- name: Generating one-time APK signature key
|
||||
run: keytool -genkey -v -keystore keystore.jks -alias Nostros -keyalg RSA -keysize 2048 -validity 10000 -storepass ${{ secrets.KEY_STORE_PASS }} -keypass ${{ secrets.KEY_PASS }} -dname "cn=Nostros, ou=Actions, o=Nostros, c=GitHub"
|
||||
|
||||
- name: 'Build Android Release'
|
||||
run: |
|
||||
cd android
|
||||
|
@ -126,6 +126,22 @@ android {
|
||||
keyAlias 'androiddebugkey'
|
||||
keyPassword 'android'
|
||||
}
|
||||
|
||||
release {
|
||||
// We can leave these in environment variables
|
||||
storeFile file('../../keystore.jks')
|
||||
keyAlias System.getenv("KEY_ALIAS")
|
||||
|
||||
// These two lines make gradle believe that the signingConfigs
|
||||
// section is complete. Without them, tasks like installRelease
|
||||
// will not be available!
|
||||
storePassword System.getenv("KEY_STORE_PASS")
|
||||
keyPassword System.getenv("KEY_PASS")
|
||||
|
||||
enableV1Signing true
|
||||
enableV2Signing true
|
||||
enableV3Signing true
|
||||
}
|
||||
}
|
||||
buildTypes {
|
||||
debug {
|
||||
|
Loading…
Reference in New Issue
Block a user