From ff64f92676d8c41b9e68a83d0e6e88c72e92a674 Mon Sep 17 00:00:00 2001 From: Eric Degenetais Date: Fri, 1 Mar 2024 11:13:50 +0100 Subject: [PATCH 1/3] FIX : scm element needed for release procedure. --- pom.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index bffbad6..8a93846 100644 --- a/pom.xml +++ b/pom.xml @@ -39,7 +39,11 @@ 3.0.0 fr.ans.psc.PscApiMajApplication - + + + scm:git:${project.basedir} + HEAD + org.springframework.boot From 05ecc95a81f85bc97dd4a0d1faeaf4a7c5c389ed Mon Sep 17 00:00:00 2001 From: Eric Degenetais Date: Fri, 1 Mar 2024 11:15:02 +0100 Subject: [PATCH 2/3] FIX : version update, since version 2.0.1 was delivered. --- pom.xml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 8a93846..c321df8 100644 --- a/pom.xml +++ b/pom.xml @@ -16,9 +16,7 @@ limitations under the License. --> - + 4.0.0 org.springframework.boot @@ -28,7 +26,7 @@ fr.ans.psc psc-api-maj-v2 - 2.0.1-SNAPSHOT + 2.0.2-SNAPSHOT psc-api-maj-v2 API for PS CRUD 2022-2023 From 6a74434fd75d6f0baef40f5217b124f63d06af0c Mon Sep 17 00:00:00 2001 From: Eric Degenetais Date: Fri, 1 Mar 2024 11:24:32 +0100 Subject: [PATCH 3/3] Doc : short description of the release procedure. --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..35e8d95 --- /dev/null +++ b/README.md @@ -0,0 +1,23 @@ +# PS data update API + +## Developement + +### Release procedure + +Whenever a version is ready for release, run the following commands on the `main` brnahc (or on the maintenance branch if we're about to issue a production FIX). This should run on any shell, be it `bash`, `cmd` or if needed `gitbash`. + +```bash +mvn release:prepare -DautoVersionSubmodules=true -DtagNameFormat=@{version} +git push +git push origin +``` + +where `` stands for the new version. + +Eg to relase `2.0.0` : + +```bash +mvn release:prepare -DautoVersionSubmodules=true -DtagNameFormat=@{version} +git push +git push origin 2.0.0 +```