Skip to content

Commit

Permalink
Pre-release changes to mkrelease
Browse files Browse the repository at this point in the history
  • Loading branch information
ron.record committed Aug 18, 2024
1 parent d52cd30 commit 2aa4784
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions mkrelease
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,24 @@ while getopts "b:cdnpu" flag; do
done
shift $(( OPTIND - 1 ))

ANNO="RoonCommandLine Version ${VERSION} Release ${RELEASE}"
BOPTS=
[ "${BRANCH}" ] && BOPTS="--prerelease --target ${BRANCH}"
if [ "${BRANCH}" ]; then
ANNO="RoonCommandLine Version ${VERSION} Pre-Release ${RELEASE}"
BOPTS="--prerelease --target ${BRANCH}"
r=p
rel=prerelease
else
ANNO="RoonCommandLine Version ${VERSION} Release ${RELEASE}"
BOPTS=
r=r
rel=release
fi
if [ "${DRYRUN}" ]; then
[ "${BRANCH}" ] && echo "git checkout ${BRANCH}"
[ "${CLEAN}" ] && echo "./clean"
[ "${PACKAGE}" ] && echo "./mkpkg"
echo "gittag v${VERSION}r${RELEASE} ${ANNO}"
echo "Creating release for version ${VERSION} release ${RELEASE} [dryrun]"
echo "gh release create v${VERSION}r${RELEASE} ${DRAFT} \\"
echo "gittag v${VERSION}${r}${RELEASE} ${ANNO}"
echo "Creating ${rel} for version ${VERSION} ${rel} ${RELEASE} [dryrun]"
echo "gh release create v${VERSION}${r}${RELEASE} ${DRAFT} \\"
[ "${BOPTS}" ] && echo " ${BOPTS} \\"
echo " --title \"${ANNO}\" \\"
echo " --notes-file pkg/release.md releases/${VERSION}/*"
Expand All @@ -65,11 +73,11 @@ else
[ "${BRANCH}" ] && git checkout ${BRANCH}
[ "${CLEAN}" ] && ./clean
[ "${PACKAGE}" ] && ./mkpkg
gittag v${VERSION}r${RELEASE} ${ANNO}
gittag v${VERSION}${r}${RELEASE} ${ANNO}

echo "Creating release for version ${VERSION} release ${RELEASE}"
echo "Creating ${rel} for version ${VERSION} ${rel} ${RELEASE}"

gh release create v${VERSION}r${RELEASE} ${DRAFT} ${BOPTS} \
gh release create v${VERSION}${r}${RELEASE} ${DRAFT} ${BOPTS} \
--title "${ANNO}" \
--notes-file pkg/release.md \
releases/${VERSION}/*
Expand Down

0 comments on commit 2aa4784

Please sign in to comment.