hopefully will push and release to maven (#51)
This commit is contained in:
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@ -19,7 +19,12 @@ jobs:
|
|||||||
path: ~/.gradle/caches
|
path: ~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
|
||||||
restore-keys: ${{ runner.os }}-gradle
|
restore-keys: ${{ runner.os }}-gradle
|
||||||
- name: Publish package
|
- name: Publish packages to Github
|
||||||
run: ./gradlew publish -Prelease=true
|
run: ./gradlew publish -Prelease=true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Publish packages to Nexus
|
||||||
|
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -Prelease=true
|
||||||
|
env:
|
||||||
|
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
|
||||||
|
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [1.0.0] - May 9th, 2021
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- SonaType integration to publish to MavenCentral
|
||||||
|
|
||||||
### [1.0.0-rc] - May 8th, 2021
|
### [1.0.0-rc] - May 8th, 2021
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
@ -2,6 +2,7 @@ plugins {
|
|||||||
id("org.jetbrains.kotlin.jvm") version "1.4.32" apply false
|
id("org.jetbrains.kotlin.jvm") version "1.4.32" apply false
|
||||||
id("io.gitlab.arturbosch.detekt") version "1.16.0-RC2" apply false
|
id("io.gitlab.arturbosch.detekt") version "1.16.0-RC2" apply false
|
||||||
id("com.adarshr.test-logger") version "3.0.0" apply false
|
id("com.adarshr.test-logger") version "3.0.0" apply false
|
||||||
|
id("io.github.gradle-nexus.publish-plugin") version "1.1.0" apply true
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
@ -60,3 +61,14 @@ allprojects {
|
|||||||
withSourcesJar()
|
withSourcesJar()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nexusPublishing {
|
||||||
|
repositories {
|
||||||
|
sonatype {
|
||||||
|
username.set(System.getenv("SONATYPE_USER"))
|
||||||
|
password.set(System.getenv("SONATYPE_PASSWORD"))
|
||||||
|
nexusUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/releases/"))
|
||||||
|
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# Kompendium
|
# Kompendium
|
||||||
project.version=1.0.0-rc
|
project.version=1.0.0
|
||||||
# Kotlin
|
# Kotlin
|
||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
# Gradle
|
# Gradle
|
||||||
|
Reference in New Issue
Block a user