automatic builds on push, automate manifest more, change the plugin group to a shorter one

This commit is contained in:
2026-02-25 17:32:22 +01:00
parent 3eada6cd2f
commit eec4da9362
3 changed files with 43 additions and 4 deletions
+30
View File
@@ -0,0 +1,30 @@
name: Build commit
on:
push:
branches: [ master ]
paths:
- "src/**"
- "pom.xml"
workflow_dispatch:
jobs:
build-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 25
distribution: 'temurin'
- name: Set short commit hash
run: fullCommit=${{ github.sha }} && echo "SHORT_SHA=${fullCommit:0:8}" >> $GITHUB_ENV
- name: Build with Maven
run: mvn -B clean package --file pom.xml -Drevision=${{ github.ref_name }}-${SHORT_SHA}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: artifact
path: 'target/QuickerStacker-*.jar'
+10 -1
View File
@@ -6,13 +6,22 @@
<groupId>me.youhavetrouble.quickerstacker</groupId> <groupId>me.youhavetrouble.quickerstacker</groupId>
<artifactId>QuickerStacker</artifactId> <artifactId>QuickerStacker</artifactId>
<version>1.2.1</version> <version>${revision}</version>
<packaging>jar</packaging>
<developers>
<developer>
<name>YouHaveTrouble</name>
<url>https://yht.one</url>
</developer>
</developers>
<properties> <properties>
<maven.compiler.source>25</maven.compiler.source> <maven.compiler.source>25</maven.compiler.source>
<maven.compiler.target>25</maven.compiler.target> <maven.compiler.target>25</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<hytale.version>2026.02.19-1a311a592</hytale.version> <hytale.version>2026.02.19-1a311a592</hytale.version>
<revision>1.2.1</revision>
</properties> </properties>
<build> <build>
+3 -3
View File
@@ -1,6 +1,6 @@
{ {
"Group": "me.youhavetrouble.quickerstacker", "Group": "YouHaveTrouble",
"Name": "QuickerStacker", "Name": "${artifactId}",
"Version": "${project.version}", "Version": "${project.version}",
"Description": "Quick stack everything!", "Description": "Quick stack everything!",
"Authors": [ "Authors": [
@@ -15,5 +15,5 @@
"OptionalDependencies": {}, "OptionalDependencies": {},
"DisabledByDefault": false, "DisabledByDefault": false,
"IncludesAssetPack": true, "IncludesAssetPack": true,
"Main": "me.youhavetrouble.quickerstacker.QuickerStacker" "Main": "${project.groupId}.${artifactId}"
} }