-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Gradle Release Plugin] - pre tag commit: '1.1.0'.
- Loading branch information
1 parent
8dcc4c1
commit 3f3357b
Showing
4 changed files
with
20 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
version=1.0.0-SNAPSHOT | ||
version=1.1.0 | ||
org.gradle.caching=true | ||
org.gradle.parallel=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# override CHANGELOG temporarily for outputting a minimalistic changelog for github release | ||
./gradlew generateChangelog -Pchangelog.releaseVersion=${TRAVIS_TAG} -Pchangelog.sinceTag=${TRAVIS_TAG} | ||
body="$(cat CHANGELOG.md)" | ||
|
||
id=$(curl -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/repos/$TRAVIS_REPO_SLUG/releases" | jq '.[] | select(.tag_name = "${TRAVIS_TAG}") | .id') | ||
|
||
jq -n --arg body "$body" \ | ||
'{ | ||
body: $body | ||
}' > CHANGELOG.json | ||
|
||
curl -X PATCH -H "Authorization: token $GITHUB_TOKEN" --data @CHANGELOG.json "https://api.github.com/repos/$TRAVIS_REPO_SLUG/releases/$id" |