fix SNAPSHOTS
All checks were successful
CI / deploy (push) Successful in 5m5s

This commit is contained in:
Arindy 2025-02-11 22:47:49 +01:00
parent 2f4cc2de8b
commit f465e1c101
2 changed files with 7 additions and 5 deletions

View File

@ -23,8 +23,7 @@ jobs:
- name: new Version - name: new Version
if: github.ref_name == 'main' if: github.ref_name == 'main'
run: | run: |
./mvnw -B --no-transfer-progress clean validate -Prelease ./mvnw -B --no-transfer-progress versions:set -DremoveSnapshot
./mvnw -B --no-transfer-progress versions:commit -Djgitver.skip=true
- name: Build Runner - name: Build Runner
run: | run: |
@ -59,6 +58,9 @@ jobs:
git config user.name "gitea" git config user.name "gitea"
git add ./pom.xml git add ./pom.xml
git commit -m "[no ci] release ${{ steps.version.outputs.VERSION }}" git commit -m "[no ci] release ${{ steps.version.outputs.VERSION }}"
./mvnw -B --no-transfer-progress clean validate -Pnew-snapshot
git add ./pom.xml
git commit -m "[no ci] prepare new Version"
git tag ${{ steps.version.outputs.VERSION }} -m "release ${{ steps.version.outputs.VERSION }}" git tag ${{ steps.version.outputs.VERSION }} -m "release ${{ steps.version.outputs.VERSION }}"
git push origin main git push origin main
git push origin ${{ steps.version.outputs.VERSION }} git push origin ${{ steps.version.outputs.VERSION }}

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>de.arindy</groupId> <groupId>de.arindy</groupId>
<artifactId>dice-tower</artifactId> <artifactId>dice-tower</artifactId>
<version>1.0.1</version> <version>1.0.1-SNAPSHOT</version>
<properties> <properties>
<compiler-plugin.version>3.13.0</compiler-plugin.version> <compiler-plugin.version>3.13.0</compiler-plugin.version>
@ -275,7 +275,7 @@
</properties> </properties>
</profile> </profile>
<profile> <profile>
<id>release</id> <id>new-snapshot</id>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
@ -303,7 +303,7 @@
<goal>set</goal> <goal>set</goal>
</goals> </goals>
<configuration> <configuration>
<newVersion>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.nextIncrementalVersion}</newVersion> <newVersion>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.nextIncrementalVersion}-SNAPSHOT</newVersion>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>