Skip to content

Commit 07e00d1

Browse files
committed
Improve publishing setup and bump version
1 parent 1ec70df commit 07e00d1

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ repositories {
5050

5151
``` groovy
5252
dependencies {
53-
compile "ch.poole:OpeningHoursFragment:0.13.3"
53+
compile "ch.poole:OpeningHoursFragment:0.13.4"
5454
}
5555
```

lib/build.gradle

+30-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
// Project level build file starts here
2+
3+
buildscript {
4+
repositories {
5+
maven {
6+
url "https://plugins.gradle.org/m2/"
7+
}
8+
}
9+
dependencies {
10+
classpath "com.github.breadmoirai:github-release:2.5.2"
11+
}
12+
}
13+
214
plugins {
315
id "org.sonarqube" version "3.1"
416
}
@@ -8,8 +20,9 @@ apply plugin: 'com.android.library'
820
apply plugin: 'maven-publish'
921
apply plugin: 'signing'
1022
apply plugin: "jacoco"
23+
apply plugin: "com.github.breadmoirai.github-release"
1124

12-
version = '0.13.3'
25+
version = '0.13.4'
1326
def libName = "OpeningHoursFragment"
1427

1528
task updateTranslations(type: Exec) {
@@ -88,6 +101,7 @@ android {
88101
ext {
89102
androidxVersion = "1.0.0"
90103
adb = android.getAdbExe().toString()
104+
githubToken = System.getenv('GITHUB_TOKEN')
91105
}
92106

93107
dependencies {
@@ -300,3 +314,18 @@ publishing {
300314
signing {
301315
sign publishing.publications.openinghoursfragment
302316
}
317+
318+
githubRelease {
319+
token project.ext.githubToken == null ? "" : project.ext.githubToken
320+
repo = "OpeningHoursFragment"
321+
owner = "simonpoole"
322+
tagName = project.version
323+
releaseName = project.version
324+
targetCommitish = "master"
325+
generateReleaseNotes = true
326+
overwrite = true
327+
}
328+
329+
afterEvaluate {
330+
publishOpeninghoursfragmentPublicationToSonatypeRepository.dependsOn tasks.githubRelease
331+
}

0 commit comments

Comments
 (0)