diff --git a/.github/scripts/prepare-tag-release.sh b/.github/scripts/prepare-tag-release.sh new file mode 100755 index 0000000..8db9fd8 --- /dev/null +++ b/.github/scripts/prepare-tag-release.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +# Script change version and run build +# then adds changes and do a release commit +# then creates tag with version specified by argument +# user must then push tags using `git push --tags` and do a release in github + +TAG=$1 +echo "Tagging version to ${TAG}" + +mvn versions:set -DnewVersion=${TAG} +mvn clean install +git add "." +git diff --staged --quiet || git commit -m "Release ${TAG}" +git tag -a ${TAG} -m "${TAG}" diff --git a/.gitignore b/.gitignore index 1095e75..10b5a43 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,6 @@ *.iml docs/fmf/ docs/md/ + +# Pom version backup +**pom.xml.versionsBackup diff --git a/dummy-module/pom.xml b/dummy-module/pom.xml index a09f706..b11a946 100644 --- a/dummy-module/pom.xml +++ b/dummy-module/pom.xml @@ -61,14 +61,13 @@ true - 0.0.4-SNAPSHOT io.skodjob test-docs-generator-maven-plugin - ${generator.version} + ${project.parent.version} @@ -91,7 +90,7 @@ io.skodjob test-docs-generator-maven-plugin - ${generator.version} + ${project.parent.version} post-integration-test