Update GitHub Actions workflow to use actions/upload-artifact@v4 and setup-java@v4

This commit is contained in:
Dark98 committed 2026-11-04 00:36:59 +00:00
1 parent fb2bc30305
commit 758e2688f8
1 file changed
+13 -11
+13 -11
View File
@@ -13,9 +13,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up JDK 1.8
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '8'
@@ -24,15 +26,15 @@ jobs:
id: build
run: |
mvn -B clean package
mkdir -p ~/artifacts
cp "2006Scape Client/target/client-1.0-jar-with-dependencies.jar" ~/artifacts/Client.jar
cp "2006Scape Server/target/server-1.0-jar-with-dependencies.jar" ~/artifacts/Server.jar
cp "2006Scape Server/ServerConfig.Sample.json" ~/artifacts/ServerConfig.json
cp SinglePlayer.bat ~/artifacts/
cp -r "2006Scape Server/plugins" ~/artifacts/
cp -r "2006Scape Server/data" ~/artifacts/
mkdir -p artifacts
cp "2006Scape Client/target/client-1.0-jar-with-dependencies.jar" artifacts/Client.jar
cp "2006Scape Server/target/server-1.0-jar-with-dependencies.jar" artifacts/Server.jar
cp "2006Scape Server/ServerConfig.Sample.json" artifacts/ServerConfig.json
cp SinglePlayer.bat artifacts/
cp -r "2006Scape Server/plugins" artifacts/
cp -r "2006Scape Server/data" artifacts/
- name: Publish build to GH Actions
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: ~/artifacts/*
name: 2006Scape-SinglePlayer
path: artifacts/