Skip to content

Commit

Permalink
Check file existence
Browse files Browse the repository at this point in the history
  • Loading branch information
massivemadness committed Jun 17, 2023
1 parent ec095cc commit 1439095
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Create local.properties
run: |
echo "Creating local.properties file"
echo "signing.keyId=${{ secrets.SIGNING_KEY_ID }}" > local.properties
echo "signing.password=${{ secrets.SIGNING_PASSWORD }}" >> local.properties
echo "signing.secretKeyRingFile=${{ secrets.SIGNING_KEY_RING }}" >> local.properties
echo "ossrhUsername=${{ secrets.OSSRH_USERNAME }}" >> local.properties
echo "ossrhPassword=${{ secrets.OSSRH_PASSWORD }}" >> local.properties
- name: Setup Java
uses: actions/setup-java@v3
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class FragulaModulePlugin : Plugin<Project> {

defaultConfig {
minSdk = Gradle.Fragula.minSdk
targetSdk = Gradle.Fragula.targetSdk

consumerProguardFiles("consumer-rules.pro")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ class PublishModulePlugin : Plugin<Project> {
val publishModule = extensions.create("publishModule", PublishModuleExtension::class.java)
val publishing = extensions["publishing"] as PublishingExtension
val properties = Properties().apply {
load(rootProject.file("local.properties").inputStream())
val localFile = rootProject.file("local.properties")
if (localFile.exists()) {
load(localFile.inputStream())
}
}
extra["signing.keyId"] = properties.getProperty("signing.keyId")
extra["signing.password"] = properties.getProperty("signing.password")
Expand Down

0 comments on commit 1439095

Please sign in to comment.