fix SNAPSHOTS
Some checks failed
CI / deploy (push) Has been cancelled

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

View File

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

View File

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