Skip to content

Commit

Permalink
add new helper script for generating the release
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciojs committed Sep 13, 2021
1 parent 78de896 commit 56537fd
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions make_release.sh
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

0 comments on commit 56537fd

Please sign in to comment.