Enable on-push Space publishing for dev branch #167

Closed
CommanderTvis wants to merge 7 commits from publish-to-space-repo into dev
3 changed files with 34 additions and 5 deletions

View File

@ -1,3 +1,26 @@
job("Build") { job("Publish") {
startOn {
gitPush {
branchFilter {
+"dev"
}
}
}
gradlew("openjdk:11", "publish") {
env["SPACE_USER"] = Secrets("space_user")
env["SPACE_TOKEN"] = Secrets("space_token")
}
}
job("Build"){
startOn {
gitPush {
branchFilter {
-"dev"
}
}
}
gradlew("openjdk:11", "build") gradlew("openjdk:11", "build")
} }

View File

@ -2,6 +2,7 @@ import ru.mipt.npm.gradle.KSciencePublishPlugin
plugins { plugins {
id("ru.mipt.npm.project") id("ru.mipt.npm.project")
id("ru.mipt.npm.publish") apply false
} }
internal val kmathVersion: String by extra("0.2.0-dev-4") internal val kmathVersion: String by extra("0.2.0-dev-4")
@ -38,3 +39,9 @@ readme {
apiValidation { apiValidation {
validationDisabled = true validationDisabled = true
} }
ksciencePublish {
spaceRepo = "https://maven.pkg.jetbrains.space/mipt-npm/p/sci/maven"
spaceUser = System.getenv("SPACE_USER")
spaceToken = System.getenv("SPACE_TOKEN")
}

View File

@ -1,9 +1,8 @@
kotlin.code.style=official kotlin.code.style=official
kotlin.parallel.tasks.in.project=true
kotlin.mpp.enableGranularSourceSetsMetadata=true kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false
kotlin.mpp.stability.nowarn=true kotlin.mpp.stability.nowarn=true
kotlin.native.enableDependencyPropagation=false
kotlin.parallel.tasks.in.project=true
org.gradle.jvmargs=-XX:MaxMetaspaceSize=512m org.gradle.jvmargs=-XX:MaxMetaspaceSize=512m
org.gradle.parallel=true org.gradle.parallel=true
systemProp.org.gradle.internal.publish.checksums.insecure=true systemProp.org.gradle.internal.publish.checksums.insecure=true