Skip to content

Commit

Permalink
Adjusting variables
Browse files Browse the repository at this point in the history
  • Loading branch information
carlospontual committed Mar 19, 2024
1 parent 31fbeaf commit 1057c22
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ on:
- 'datastore-kotlin-impl'
env:
REPO_ARTIFACTS_URL: ${{ secrets.REPO_ARTIFACTS_URL }}
REPO_PUBLISH_URL: ${{ secrets.REPO_PUBLISH_URL }}
REPO_USERID: ${{ secrets.REPO_USERID }}
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }}
REPO_PUBLISH_URL: ${{ secrets.REPO_PUBLISH_URL }}
REPO_PUBLISH_USERID: ${{ secrets.REPO_PUBLISH_USERID }}
REPO_PUBLISH_PW: ${{ secrets.REPO_PUBLISH_PW }}

jobs:
build:
Expand All @@ -24,4 +26,4 @@ jobs:
run: ./gradlew persistent-cookie-jar-okhttp:test

- name: Publish Library
run: ./gradlew --stacktrace -PrepoPublishURL=$REPO_PUBLISH_URL -PrepoUserName=$REPO_USERID -PrepoUserPassword=$REPO_PASSWORD clean persistent-cookie-jar-okhttp:assembleRelease publish
run: ./gradlew --stacktrace -PrepoPublishURL=$REPO_PUBLISH_URL -PrepoUserName=$REPO_PUBLISH_USERID -PrepoUserPassword=$REPO_PUBLISH_PW clean persistent-cookie-jar-okhttp:assembleRelease publish
8 changes: 4 additions & 4 deletions persistent-cookie-jar-okhttp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ afterEvaluate {
publishing {
// These values are provided by the CI environment, args are retrieved from the command line.
val repoPublishURL: String? by project
val repoUserName: String? by project
val repoUserPassword: String? by project
val repoPublishUsername: String? by project
val repoPublishPassword: String? by project

repositories {
maven {
url = uri(repoPublishURL ?: "")
credentials {
username = repoUserName
password = repoUserPassword
username = repoPublishUsername
password = repoPublishPassword
}
}
}
Expand Down

0 comments on commit 1057c22

Please sign in to comment.