Skip to content

Commit

Permalink
Publish releases to GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
jjurm committed Mar 4, 2020
1 parent d59f03c commit 2a4363e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,4 @@ data/
NOTES.md
.idea/**/ros.xml
.idea/**/jarRepositories.xml
secrets.properties
42 changes: 42 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ plugins {
id "org.jetbrains.kotlin.plugin.jpa" version "1.3.60"
id "org.jetbrains.kotlin.plugin.noarg" version "1.3.60"
id 'de.fuerstenau.buildconfig' version '1.1.8'
//id 'maven-publish'
id 'com.novoda.build-properties' version '0.4.1'
id "co.riiid.gradle" version "0.4.2"
}

buildProperties {
secrets {
using project.file(new File("secrets.properties"))
}
}

group 'uk.ac.cam.jm2186'
Expand Down Expand Up @@ -74,6 +83,39 @@ dokka {
}
}

/*publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/jjurm/graffs")
credentials {
//username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
//password = project.findProperty("gpr.key") ?: System.getenv("PASSWORD")
username = buildProperties.secrets['gpr.user'].string
password = buildProperties.secrets['gpr.key'].string
}
}
}
publications {
gpr(MavenPublication) {
from(components.java)
}
}
}*/

github {
owner = 'jjurm'
repo = 'graffs'
token = buildProperties.secrets['gpr.key'].string
tagName = version
targetCommitish = 'master'
name = "v${version}"
//body = """"""
assets = [
"${buildDir}/libs/${archivesBaseName}-${version}.jar"
]
}

repositories {
mavenCentral()
jcenter()
Expand Down

0 comments on commit 2a4363e

Please sign in to comment.