Skip to content

Commit

Permalink
Tag release version before committing development version change
Browse files Browse the repository at this point in the history
  • Loading branch information
mbladel committed Apr 19, 2024
1 parent f36dd10 commit 034b42f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions release/release.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -322,14 +322,14 @@ def releasePreparePostGitTask = tasks.register( 'gitTasksAfterRelease' ) {
dependsOn changeToDevelopmentVersionTask

doLast {
logger.lifecycle( "Performing pre-steps Git commit : `${project.releaseVersion}`" )
executeGitCommand( 'add', '.' )
executeGitCommand( 'commit', '-m', "Post-steps for release : `${project.ormVersion.fullName}`" )

if ( project.createTag ) {
logger.lifecycle( "Tagging release : `${project.releaseTag}`..." )
executeGitCommand( 'tag', '-a', project.releaseTag, '-m', "Release $project.ormVersion.fullName" )
}

logger.lifecycle( "Performing post-steps Git commit : `${project.releaseVersion}`" )
executeGitCommand( 'add', '.' )
executeGitCommand( 'commit', '-m', "Post-steps for release : `${project.ormVersion.fullName}`" )
}
}

Expand Down

0 comments on commit 034b42f

Please sign in to comment.