Skip to content

Commit

Permalink
add publishing to bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasForst committed Mar 7, 2020
1 parent 0358f33 commit 0b5bfe0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ jobs:
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to Bintray
run: ./gradlew bintrayUpload
env:
BINTRAY_USER: ${{ secrets.BintrayUser }}
BINTRAY_TOKEN: ${{ secrets.BintrayToken }}
22 changes: 21 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
`maven-publish`
kotlin("jvm") version "1.3.70"
id("net.nemerosa.versioning") version "2.8.2"
id("com.jfrog.bintray") version "1.8.4"
}

group = "pw.forst"
Expand Down Expand Up @@ -36,9 +37,10 @@ val javadocJar by tasks.creating(Jar::class) {
from(tasks.javadoc)
}

val publication = "exposed-upsert"
publishing {
publications {
register("gpr", MavenPublication::class) {
register("exposed-upsert", MavenPublication::class) {
from(components["java"])
artifact(sourcesJar)
artifact(javadocJar)
Expand All @@ -56,3 +58,21 @@ publishing {
}
}
}

bintray {
user = System.getenv("BINTRAY_USER")
key = System.getenv("BINTRAY_TOKEN")
publish = true
setPublications(publication)
pkg(delegateClosureOf<com.jfrog.bintray.gradle.BintrayExtension.PackageConfig> {
repo = "jvm-packages"
name = "exposed-upsert"
websiteUrl = "https://forst.pw"
githubRepo = "LukasForst/exposed-upsert"
vcsUrl = "https://github.com/LukasForst/exposed-upsert"
description = "Simple upsert implementation for Exposed and PostgreSQL"
setLabels("kotlin", "PostgreSQL", "Exposed", "Exposed-Extensions")
setLicenses("MIT")
desc = description
})
}

0 comments on commit 0b5bfe0

Please sign in to comment.