-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new helper script for generating the release
- Loading branch information
1 parent
78de896
commit 56537fd
Showing
1 changed file
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
kool run make-docs | ||
kool run parse-presets | ||
kool run fmt | ||
kool run lint | ||
kool run test | ||
|
||
if [ ! -z "$(git status -s)" ]; then | ||
echo "You have uncommited changes; aborting creating release." | ||
exit 1 | ||
fi | ||
|
||
read -p "What version do you want to build (0.0.0 semver format): " | ||
if [[ ! $REPLY =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] | ||
then | ||
echo "Bad version format; expected semver 0.0.0" | ||
exit 1 | ||
fi | ||
|
||
export BUILD_VERSION=$REPLY | ||
|
||
exec bash build_artifacts.sh | ||
|
||
# TODO: create new tag / draft a new release with github CLI |