Skip to content

Commit 835ca1c

Browse files
cryptobenchclaude
andcommitted
Add HytaleServer.jar to lib folder for builds
- Include HytaleServer.jar directly in repo - Simplify GitHub Actions workflow - Update pom.xml to use lib/ path Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent b658c3a commit 835ca1c

File tree

3 files changed

+11
-52
lines changed

3 files changed

+11
-52
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- 'v*'
88
pull_request:
99
branches: [ master, main ]
10-
workflow_dispatch: # Allow manual trigger
10+
workflow_dispatch:
1111

1212
jobs:
1313
build:
@@ -16,6 +16,8 @@ jobs:
1616
steps:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
19+
with:
20+
lfs: true
1921

2022
- name: Set up Java 25
2123
uses: actions/setup-java@v4
@@ -24,28 +26,8 @@ jobs:
2426
distribution: 'temurin'
2527
cache: maven
2628

27-
- name: Create lib directory
28-
run: mkdir -p lib
29-
30-
- name: Download HytaleServer.jar from secret URL
31-
if: ${{ vars.HYTALE_SERVER_URL != '' }}
32-
run: curl -L -o lib/HytaleServer.jar "${{ vars.HYTALE_SERVER_URL }}"
33-
34-
- name: Check for HytaleServer.jar in lib folder
35-
run: |
36-
if [ ! -f lib/HytaleServer.jar ]; then
37-
echo "ERROR: HytaleServer.jar not found!"
38-
echo ""
39-
echo "To fix this, do ONE of the following:"
40-
echo "1. Add a repository variable HYTALE_SERVER_URL with a download link"
41-
echo "2. Add lib/HytaleServer.jar to the repository"
42-
echo ""
43-
exit 1
44-
fi
45-
echo "Found HytaleServer.jar"
46-
4729
- name: Build with Maven
48-
run: mvn clean package -Dhytale.server.path=${{ github.workspace }}/lib/HytaleServer.jar
30+
run: mvn clean package
4931

5032
- name: Upload artifact
5133
uses: actions/upload-artifact@v4
@@ -71,10 +53,8 @@ jobs:
7153
id: version
7254
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
7355

74-
- name: Rename JAR to include version
75-
run: |
76-
cd dist
77-
mv HomeEssentials-*.jar HomeEssentials-${{ steps.version.outputs.VERSION }}.jar
56+
- name: Rename JAR
57+
run: mv dist/HomeEssentials-*.jar dist/HomeEssentials-${{ steps.version.outputs.VERSION }}.jar
7858

7959
- name: Create Release
8060
uses: softprops/action-gh-release@v2
@@ -83,37 +63,17 @@ jobs:
8363
body: |
8464
## HomeEssentials v${{ steps.version.outputs.VERSION }}
8565
86-
A home management plugin for Hytale servers.
87-
8866
### Installation
89-
1. Download `HomeEssentials-${{ steps.version.outputs.VERSION }}.jar` below
67+
1. Download `HomeEssentials-${{ steps.version.outputs.VERSION }}.jar`
9068
2. Place in your Hytale server's `mods/` folder
9169
3. Restart the server
9270
93-
### Quick Setup
94-
Run in server console:
71+
### Setup
9572
```
9673
perm group add default homes.use
9774
perm group add default homes.limit.1
9875
```
9976
10077
### Commands
101-
| Command | Description |
102-
|---------|-------------|
103-
| `/sethome [name]` | Save your location |
104-
| `/home [name]` | Teleport to home |
105-
| `/homes` | List all homes |
106-
| `/delhome <name>` | Delete a home |
107-
| `/homehelp` | Show full help |
108-
109-
### Permissions
110-
| Permission | Description |
111-
|------------|-------------|
112-
| `homes.use` | Basic access |
113-
| `homes.limit.1` | 1 home (default) |
114-
| `homes.limit.3` | 3 homes |
115-
| `homes.limit.5` | 5 homes |
116-
| `homes.limit.unlimited` | Unlimited |
117-
files: ./dist/HomeEssentials-${{ steps.version.outputs.VERSION }}.jar
118-
draft: false
119-
prerelease: false
78+
`/sethome [name]` `/home [name]` `/homes` `/delhome <name>` `/homehelp`
79+
files: dist/HomeEssentials-${{ steps.version.outputs.VERSION }}.jar

lib/HytaleServer.jar

79.8 MB
Binary file not shown.

pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
<maven.compiler.source>25</maven.compiler.source>
1717
<maven.compiler.target>25</maven.compiler.target>
1818
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19-
<!-- Override this for CI builds: -Dhytale.server.path=/path/to/HytaleServer.jar -->
20-
<hytale.server.path>${project.basedir}/../../HytaleServer.jar</hytale.server.path>
19+
<hytale.server.path>${project.basedir}/lib/HytaleServer.jar</hytale.server.path>
2120
</properties>
2221

2322
<dependencies>

0 commit comments

Comments
 (0)