BaseBandRewrite/scripts/release.sh
TudbuT 9198ba98cc
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m44s
allow release -f
2024-06-12 11:54:20 +02:00

11 lines
No EOL
240 B
Bash

#!/bin/bash
if ! git diff-index --quiet --cached HEAD -- ; then
echo "Cannot release dirty git tree. Commit your changes to main first."
exit 1
fi
git push "$@"
git checkout release
git reset --hard main
git push "$@"
git checkout main