Skip to content

Commit

Permalink
Add release process document and update mkrelease.sh
Browse files Browse the repository at this point in the history
Signed-off-by: William Douglas <[email protected]>
  • Loading branch information
bryteise committed Oct 24, 2022
1 parent ce4c8dd commit 019f324
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions how-to-make-a-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
1) Update VERSION file and commit
2) Tag new release with "v${VERSION}"
3) Run "./scripts/mkrelease.sh -n ${VERSION}"
4) Push command and tag to github and use github ui to draft a new release and upload the tarball
12 changes: 10 additions & 2 deletions scripts/mkrelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
set -e

pkg="clr-boot-manager"
SIGN=0

print_help() {
echo -e "mkrelease.sh [--help] [options]
Expand All @@ -36,6 +37,10 @@ for curr in "$@"; do
shift
shift
;;
"--sign"|"-s")
SIGN=1
shift
;;
"--help"|"-h")
print_help;
exit 0;;
Expand All @@ -44,6 +49,7 @@ done

if [ "$version" == "" ]; then
echo "No version provided, please use \"--new-version\" flag. Use --help for more information."
exit 1
fi

echo "${version}" > VERSION
Expand All @@ -59,5 +65,7 @@ git submodule update
xz -9 "${pkg}-${version}.tar"

# Automatically sign the tarball
gpg --armor --detach-sign "${pkg}-${version}.tar.xz"
gpg --verify "${pkg}-${version}.tar.xz.asc"
if [ $SIGN -eq 1 ]; then
gpg --armor --detach-sign "${pkg}-${version}.tar.xz"
gpg --verify "${pkg}-${version}.tar.xz.asc"
fi

0 comments on commit 019f324

Please sign in to comment.