Skip to content

Commit

Permalink
Test - sonatype error
Browse files Browse the repository at this point in the history
  • Loading branch information
guilgaly committed Jan 25, 2024
1 parent 1f18386 commit 9ec83d9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ object GatlingSonatypePlugin extends AutoPlugin {
)

val conditionalPublishStep: ReleaseStep = { state: State =>
if (Project.extract(state).get(gatlingPublishToSonatype)) {
val extractedState = Project.extract(state)
val publishToSonatype = extractedState.get(gatlingPublishToSonatype)
val (_, publishSkip) = extractedState.runTask(publish / skip, state)

if (publishToSonatype && !publishSkip) {
publishStep(state)
} else {
GatlingReleasePlugin.publishStep(state)
Expand Down

0 comments on commit 9ec83d9

Please sign in to comment.