mirror of
https://github.com/cage-kiosk/cage.git
synced 2025-10-29 05:40:19 -04:00
21 lines
No EOL
351 B
Bash
Executable file
21 lines
No EOL
351 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "usage: $0 <new-version>" >&2
|
|
exit 1
|
|
fi
|
|
|
|
new_version="$1"
|
|
|
|
if [ "$new_version" != "${new_version#v}" ]; then
|
|
echo "Error: The new version shouldn't be prefixed with a \"v\"." >&2
|
|
exit 1
|
|
fi
|
|
|
|
set -x
|
|
|
|
./increment_version "$new_version"
|
|
./tag-release "$new_version"
|
|
./sign-release
|
|
|
|
git push --tags |