Add SNAPSHOT to ci/dev builds

This commit is contained in:
UnfamiliarLegacy 2024-06-25 04:55:06 +02:00
parent 0df906144e
commit 6cb98be64c
3 changed files with 11 additions and 5 deletions

View File

@ -37,9 +37,14 @@ jobs:
working-directory: gwasm
run: mvn -B install
# Check if GITHUB_REF_TYPE is a tag
- name: Build G-Earth
run: |
mvn -B package -Drepository=${GITHUB_REPOSITORY}
if [[ $GITHUB_REF_TYPE == 'tag' ]]; then
mvn -B package -Drepository=${GITHUB_REPOSITORY} -Dchangelist=
else
mvn -B package -Drepository=${GITHUB_REPOSITORY}
fi
- name: Upload Mac OSX
uses: actions/upload-artifact@v4

View File

@ -17,7 +17,7 @@
<parent>
<groupId>G-Earth</groupId>
<artifactId>G-Earth-Parent</artifactId>
<version>${revision}</version>
<version>${revision}${changelist}</version>
</parent>
<build>

View File

@ -7,11 +7,12 @@
<groupId>G-Earth</groupId>
<artifactId>G-Earth-Parent</artifactId>
<packaging>pom</packaging>
<version>${revision}</version>
<version>${revision}${changelist}</version>
<properties>
<!-- Version of the application. -->
<revision>1.5.4-beta-2</revision>
<changelist>-SNAPSHOT</changelist>
<!-- Version for https://github.com/sirjonasxx/G-ExtensionStore to keep compatibility with beta versions. -->
<storeVersion>1.5.3</storeVersion>
<!-- Default repository for version checking. -->