Skip to content

Commit

Permalink
fix: environment variable not found in gradle build script
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jun 13, 2022
1 parent cf1b568 commit 0da15fb
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,19 @@ plugins {

group = "app.revanced"

val githubUsername: String = project.findProperty("gpr.user") as? String ?: System.getenv("GITHUB_ACTOR")
val githubPassword: String = project.findProperty("gpr.key") as? String ?: System.getenv("GITHUB_TOKEN")

repositories {
mavenCentral()
maven {
url = uri("https://maven.pkg.github.com/revanced/revanced-patcher")
credentials {
username = githubUsername
password = githubPassword
username = project.findProperty("gpr.user") as? String ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.key") as? String ?: System.getenv("GITHUB_TOKEN")
}
}
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.7.0")
implementation(kotlin("stdlib"))

implementation("app.revanced:revanced-patcher:1.1.0")
}

0 comments on commit 0da15fb

Please sign in to comment.