Skip to content

Commit

Permalink
Add release desc to bintray publish (#67)
Browse files Browse the repository at this point in the history
* Add issueTrackerUrl, desc and update publish = true

* Add libDesc with env variable

* Get release description from github context
  • Loading branch information
kinnerapriyap authored Jul 9, 2020
1 parent 4ea165d commit 5223f45
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ jobs:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
LIBRARY_VERSION: ${{ steps.get_version.outputs.VERSION }}
LIBRARY_VERSION_DESC: ${{ toJson(github.event.release.body) }}
run: ./gradlew clean install bintrayUpload --stacktrace
8 changes: 6 additions & 2 deletions sher-gil/upload.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ ext {
desc = 'Media picker library in kotlin for Android'

githubUrl = 'https://github.com/kinnerapriyap/sher-gil'
issueTrackerUrl = 'https://github.com/kinnerapriyap/sher-gil/issues'
gitUrl = 'https://github.com/kinnerapriyap/sher-gil.git'

developerName = 'Kinnera Priya'

libVersion = System.getenv('LIBRARY_VERSION')
libDesc = System.getenv('LIBRARY_VERSION_DESC')
}

group = publishedGroupId
Expand Down Expand Up @@ -85,21 +87,23 @@ bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_API_KEY')
configurations = ['archives']
publish = true
pkg {
repo = bintrayRepo
name = repoName
desc = desc
userOrg = user
licenses = ['Apache-2.0']
vcsUrl = gitUrl
websiteUrl = githubUrl
issueTrackerUrl = issueTrackerUrl

githubRepo = 'kinnerapriyap/sher-gil'
githubReleaseNotesFile = 'README.md'

publish = true

version {
name = libVersion
desc = libDesc
released = new Date()
vcsTag = libVersion
}
Expand Down

0 comments on commit 5223f45

Please sign in to comment.