-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d853b8e
commit 2b7e43d
Showing
2 changed files
with
26 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
do_release() { | ||
export CURRENT_VERSION="$(sed -rn "s/^project\.version '([^']*)'$/\1/p" build.gradle)" | ||
echo "current version: ${CURRENT_VERSION}" | ||
export RELEASE_VERSION="${CURRENT_VERSION/-SNAPSHOT/}" | ||
echo "release version: ${RELEASE_VERSION}" | ||
( | ||
graalvm | ||
./gradlew --no-daemon "-PreleaseVersion=${RELEASE_VERSION}" clean build | ||
native-image -jar "build/libs/compare-directory-${RELEASE_VERSION}.jar" build/compare-directory | ||
echo "Binary file: build/compare-directory is ready to be downloaded on" | ||
echo "https://github.com/alban-auzeill/compare-directory/releases" | ||
echo "to create the release: v${RELEASE_VERSION}" | ||
echo | ||
echo "Then build.gradle need to be prepared for next release." | ||
) | ||
} | ||
|
||
do_release |