Skip to content

Commit

Permalink
Improve publishing setup and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Jan 1, 2024
1 parent 1ec70df commit 07e00d1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ repositories {

``` groovy
dependencies {
compile "ch.poole:OpeningHoursFragment:0.13.3"
compile "ch.poole:OpeningHoursFragment:0.13.4"
}
```
31 changes: 30 additions & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Project level build file starts here

buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.github.breadmoirai:github-release:2.5.2"
}
}

plugins {
id "org.sonarqube" version "3.1"
}
Expand All @@ -8,8 +20,9 @@ apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: "jacoco"
apply plugin: "com.github.breadmoirai.github-release"

version = '0.13.3'
version = '0.13.4'
def libName = "OpeningHoursFragment"

task updateTranslations(type: Exec) {
Expand Down Expand Up @@ -88,6 +101,7 @@ android {
ext {
androidxVersion = "1.0.0"
adb = android.getAdbExe().toString()
githubToken = System.getenv('GITHUB_TOKEN')
}

dependencies {
Expand Down Expand Up @@ -300,3 +314,18 @@ publishing {
signing {
sign publishing.publications.openinghoursfragment
}

githubRelease {
token project.ext.githubToken == null ? "" : project.ext.githubToken
repo = "OpeningHoursFragment"
owner = "simonpoole"
tagName = project.version
releaseName = project.version
targetCommitish = "master"
generateReleaseNotes = true
overwrite = true
}

afterEvaluate {
publishOpeninghoursfragmentPublicationToSonatypeRepository.dependsOn tasks.githubRelease
}

0 comments on commit 07e00d1

Please sign in to comment.