Make Git tag during deploy
This commit is contained in:
@@ -19,5 +19,7 @@ deployment:
|
|||||||
production:
|
production:
|
||||||
branch: master
|
branch: master
|
||||||
commands:
|
commands:
|
||||||
- mvn -Drtr.disabled=true clean
|
- mvn clean
|
||||||
- mvn -s settings.xml -Drtr.release=true
|
- mvn -s settings.xml -Drtr.release=true
|
||||||
|
- git tag $(cat .version)
|
||||||
|
- git push origin $(cat .version)
|
||||||
|
|||||||
19
pom.xml
19
pom.xml
@@ -255,6 +255,25 @@
|
|||||||
<build>
|
<build>
|
||||||
<defaultGoal>clean deploy site-deploy</defaultGoal>
|
<defaultGoal>clean deploy site-deploy</defaultGoal>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<!-- Write POM version to properties file. -->
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<version>1.8</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>write-properties-file</id>
|
||||||
|
<phase>initialize</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<target>
|
||||||
|
<echo message="${project.version}" file="${project.basedir}/.version" />
|
||||||
|
</target>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
<!-- Generate source JAR. -->
|
<!-- Generate source JAR. -->
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-source-plugin</artifactId>
|
<artifactId>maven-source-plugin</artifactId>
|
||||||
|
|||||||
Reference in New Issue
Block a user