-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #46 - Extend CI configuration in order to automatically releas…
…e build artifacts (#53)
- Loading branch information
Showing
8 changed files
with
90 additions
and
11 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,2 @@ | ||
releaseVersion=0.1.M1 | ||
openCensusVersion=0.18.0 | ||
prometheusClientVersion=0.6.0 |
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,5 +1,3 @@ | ||
version = "${releaseVersion}" | ||
|
||
dependencies { | ||
compileOnly( | ||
project(':inspectit-oce-bootstrap'), | ||
|
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
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,49 @@ | ||
#!/bin/bash | ||
|
||
# Based on the shell script of Github user Jaskaranbir (https://gist.github.com/Jaskaranbir/d5b065173b3a6f164e47a542472168c1) | ||
|
||
# ===> Set these variables first | ||
branch="master" | ||
repo_slug="$TRAVIS_REPO_SLUG" | ||
token="$GITHUB_TOKEN" | ||
version="$TRAVIS_TAG" | ||
|
||
LAST_REVISION=$(git rev-list --tags --skip=1 --max-count=1) | ||
LAST_RELEASE_TAG=$(git describe --abbrev=0 --tags ${LAST_REVISION}) | ||
|
||
# Generate CHANGELOG.md | ||
github_changelog_generator \ | ||
-u $(cut -d "/" -f1 <<< $repo_slug) \ | ||
-p $(cut -d "/" -f2 <<< $repo_slug) \ | ||
--token $token \ | ||
--since-tag ${LAST_RELEASE_TAG} \ | ||
--no-author \ | ||
--no-unreleased \ | ||
--header-label "## Changelog" | ||
|
||
sed -i -e '3,5d' CHANGELOG.md | ||
sed -i '$ d' CHANGELOG.md | ||
|
||
echo "You can also find the corresponding documentation online under the following link: [Documentation $version](http://docs.inspectit.rocks/releases/$version)" > release_body.md | ||
echo "" >> release_body.md | ||
cat CHANGELOG.md >> release_body.md | ||
|
||
body="$(cat release_body.md)" | ||
|
||
# Overwrite CHANGELOG.md with JSON data for GitHub API | ||
jq -n \ | ||
--arg body "$body" \ | ||
--arg name "Version $version" \ | ||
--arg tag_name "$version" \ | ||
--arg target_commitish "$branch" \ | ||
'{ | ||
body: $body, | ||
name: $name, | ||
tag_name: $tag_name, | ||
target_commitish: $target_commitish, | ||
draft: false, | ||
prerelease: false | ||
}' > CHANGELOG.md | ||
|
||
echo "Create release $version for repo: $repo_slug, branch: $branch" | ||
curl -H "Authorization: token $token" --data @CHANGELOG.md "https://api.github.com/repos/$repo_slug/releases" |