Skip to content

Commit

Permalink
fix: Fix snapshot upload (#1652)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotradamczyk5 authored Mar 2, 2021
1 parent 7880e59 commit 214cd8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Flank [![codecov](https://codecov.io/gh/Flank/flank/branch/master/graph/badge.svg)](https://codecov.io/gh/Flank/flank) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.flank/flank/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.flank/flank)
# Flank [![codecov](https://codecov.io/gh/Flank/flank/branch/master/graph/badge.svg)](https://codecov.io/gh/Flank/flank)

Flank is a [massively parallel Android and iOS test runner](https://docs.google.com/presentation/d/1goan9cXpimSJsS3L60WjljnFA_seUyaWb2e-bezm084/edit#slide=id.p1) for [Firebase Test Lab](https://firebase.google.com/docs/test-lab/).

Expand Down
3 changes: 2 additions & 1 deletion test_runner/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ publishing {
maven {
val staging = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
val snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
url = uri(if (version.toString().endsWith("-SNAPSHOT")) snapshotsRepoUrl else staging)
val version = System.getenv("MVN_VERSION") ?: "local-SNAPSHOT"
url = uri(if (version.endsWith("-SNAPSHOT")) snapshotsRepoUrl else staging)
name = "MavenCentral"
credentials {
username = System.getenv("MVN_CENTRAL_USER") ?: properties["MVN_CENTRAL_USER"].toString()
Expand Down

0 comments on commit 214cd8d

Please sign in to comment.