Skip to content

Commit

Permalink
Show ref
Browse files Browse the repository at this point in the history
  • Loading branch information
alakida committed May 15, 2020
1 parent e6db258 commit 5e1aeae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/gradlepublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ jobs:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_TAG: ${{ github.ref }}
16 changes: 10 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ repositories {
maven(url = "https://maven-central.storage-download.googleapis.com/repos/central/data/")
mavenCentral()
}

println(System.getenv("GITHUB_TAG"))

group = "ru.yandex.cloud"
version = "1.0.2"
version = "1.0.3"

val grpcVersion = "1.28.1"
val protobufVersion = "3.11.4"
Expand Down Expand Up @@ -81,17 +84,18 @@ publishing {
from(components["java"])
}
}

val actor = System.getenv("GITHUB_ACTOR")
val token = System.getenv("GITHUB_TOKEN")
val repository = System.getenv("GITHUB_REPOSITORY")

repositories {
val actor = System.getenv("GITHUB_ACTOR")
val repository = System.getenv("GITHUB_REPOSITORY")
println("GITHUB ACTOR: $actor")
println("GITHUB REPOSITORY: $repository")
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/$repository")
credentials {
username = actor
password = System.getenv("GITHUB_TOKEN")
password = token
}
}
}
Expand Down

0 comments on commit 5e1aeae

Please sign in to comment.