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

@ -36,11 +36,16 @@ jobs:
- name: Install G-Wasm - name: Install G-Wasm
working-directory: gwasm working-directory: gwasm
run: mvn -B install run: mvn -B install
# Check if GITHUB_REF_TYPE is a tag
- name: Build G-Earth - name: Build G-Earth
run: | 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 - name: Upload Mac OSX
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:

View File

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

View File

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