Last active
September 25, 2021 19:22
-
-
Save wendreof/b63210114381fab45fdc8b146b04a0f0 to your computer and use it in GitHub Desktop.
1-How-to-Safely-Build-Assigned-App-with-GitHub-Actions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//other settings... | |
def keystoreProperties = new Properties() | |
def keystorePropertiesFile = rootProject.file('key.properties') | |
if (keystorePropertiesFile.exists()) { | |
keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) | |
} | |
//other settings... | |
signingConfigs { | |
release { | |
//From decoded key | |
storeFile = file('key.jks') | |
//From key.properties | |
keyAlias keystoreProperties['keyAlias'] | |
keyPassword keystoreProperties['keyPassword'] | |
storePassword keystoreProperties['storePassword'] | |
} | |
} | |
//other settings... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment