diff --git a/voila-runtime-root/deploy_release.cmd b/voila-runtime-root/deploy_release.cmd new file mode 100644 index 0000000000000000000000000000000000000000..3b0a3fe52d53a9d0a5a7b2e25272bcf5c3cc7c66 --- /dev/null +++ b/voila-runtime-root/deploy_release.cmd @@ -0,0 +1,26 @@ +@echo off +cls + +rem Name of git tag. +set TAG_NAME="v%DATE:-=.%" + +rem Remove old local tag. +git tag -d "%TAG_NAME%" + +rem Remove old remote tag. +git push origin --delete "%TAG_NAME%" + +rem Prepare a release without push remote tag and changes. +mvn release:prepare -DremoteTagging=false -DpushChanges=false + +rem Push remote tag and changes. +git commit -a -m "Prepare a release" +git tag "%TAG_NAME%" +git push +git push --tags +git push origin + +rem Perform a release. +mvn release:perform + +rem end of file \ No newline at end of file