Skip to content
Snippets Groups Projects
Commit db7becd4 authored by fabio.memoli@micegroup.it's avatar fabio.memoli@micegroup.it
Browse files

Add script

parent 2ebd986e
Branches
Tags
No related merge requests found
@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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment