Skip to content

Commit

Permalink
fix(release): use a fixed beta version of the plugin for publishing t…
Browse files Browse the repository at this point in the history
…he fixed version of the plugin (will be replaced by the new stable version as soon as the release happens)
  • Loading branch information
DanySK committed Jun 30, 2022
1 parent d27ccca commit 1fe706b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ jobs:
uses: DanySK/[email protected]
- uses: DanySK/[email protected]
with:
deploy-command: ./gradlew uploadAllPublicationsToMavenCentralNexus closeStagingRepositoryOnMavenCentral --parallel
deploy-command: >-
./gradlew
uploadKotlin
uploadPluginMavenToMavenCentralNexus
uploadPublishOnCentralPluginPluginMarkerMavenToMavenCentralNexus
close
--parallel
should-run-codecov: ${{ runner.os == 'Linux' }}
should-deploy: >-
${{
Expand Down
3 changes: 0 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import org.gradle.api.tasks.testing.logging.TestLogEvent
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

@Suppress("DSL_SCOPE_VIOLATION")
Expand Down Expand Up @@ -111,8 +110,6 @@ if (System.getenv("CI") == true.toString()) {
}
}

tasks.publishJavaMavenPublicationToMavenLocal

val registerCredentials = tasks.register("registerGradlePluginPortalCredentials") {
doLast {
listOf("gradle.publish.key", "gradle.publish.secret").forEach {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-qa = { id = "org.danilopianini.gradle-kotlin-qa", version = "0.19.1" }
multiJvmTesting = { id = "org.danilopianini.multi-jvm-test-plugin", version = "0.4.3" }
nexus-publish = { id = "io.github.gradle-nexus.publish-plugin", version.ref = "nexus-publish" }
publishOnCentral = { id = "org.danilopianini.publish-on-central", version = "1.0.2" }
publishOnCentral = { id = "org.danilopianini.publish-on-central", version = "1.0.2-dev0k-7cb5241" }
taskTree = { id = "com.dorongold.task-tree", version = "2.1.0" }
2 changes: 1 addition & 1 deletion release.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var publishCmd = `
git tag -a -f \${nextRelease.version} \${nextRelease.version} -F CHANGELOG.md
git push --force origin \${nextRelease.version}
./gradlew ./gradlew uploadAllPublicationsToMavenCentralNexus releaseStagingRepositoryOnMavenCentral --parallel || exit 1
./gradlew uploadKotlin uploadPluginMavenToMavenCentralNexus uploadPublishOnCentralPluginPluginMarkerMavenToMavenCentralNexus releaseStagingRepositoryOnMavenCentral --parallel || exit 1
./gradlew publishPlugins -Pgradle.publish.key=$GRADLE_PUBLISH_KEY -Pgradle.publish.secret=$GRADLE_PUBLISH_SECRET || exit 2
./gradlew publishKotlinMavenPublicationToGithubRepository || true
`
Expand Down

0 comments on commit 1fe706b

Please sign in to comment.