This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
fradrive-old/release.sh

26 lines
472 B
Bash
Executable File

#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2023-2024 Sarah Vaupel <sarah.vaupel@uniworx.de>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
set -e
case "$(git rev-parse --abbrev-ref HEAD)" in
"master" | "main")
standard-version -a
;;
"test")
standard-version -a -t t
;;
*)
if echo $@ | grep -xqe '--dev';
then
standard-version -a -t d
else
echo "Current branch not supported for release!"
exit 1
fi
;;
esac