Skip to content

Commit 56537fd

Browse files
committed
add new helper script for generating the release
1 parent 78de896 commit 56537fd

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

make_release.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
kool run make-docs
6+
kool run parse-presets
7+
kool run fmt
8+
kool run lint
9+
kool run test
10+
11+
if [ ! -z "$(git status -s)" ]; then
12+
echo "You have uncommited changes; aborting creating release."
13+
exit 1
14+
fi
15+
16+
read -p "What version do you want to build (0.0.0 semver format): "
17+
if [[ ! $REPLY =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
18+
then
19+
echo "Bad version format; expected semver 0.0.0"
20+
exit 1
21+
fi
22+
23+
export BUILD_VERSION=$REPLY
24+
25+
exec bash build_artifacts.sh
26+
27+
# TODO: create new tag / draft a new release with github CLI

0 commit comments

Comments
 (0)