Skip to content

Commit a3e398d

Browse files
committed
ci(bukkit): build and upload bukkit jars on GitHub Actions
1 parent bddbfb3 commit a3e398d

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/bukkit-jar.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Bukkit Jar Build
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
build-bukkit-jar:
10+
name: Build Bukkit JAR
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v6
15+
16+
- name: Set up JDK
17+
uses: actions/setup-java@v5
18+
with:
19+
java-version: 21
20+
distribution: temurin
21+
22+
- name: Setup Gradle
23+
uses: gradle/actions/setup-gradle@v5
24+
with:
25+
cache-read-only: ${{ !(github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/version/')) }}
26+
27+
- name: Build Bukkit distribution JAR
28+
run: ./gradlew :worldedit-bukkit:shadowJar -x test -s
29+
30+
- name: Upload Bukkit JARs
31+
uses: actions/upload-artifact@v6
32+
with:
33+
name: worldedit-bukkit-jars-${{ github.ref_name }}-${{ github.sha }}
34+
path: worldedit-bukkit/build/libs/worldedit-bukkit-*.jar
35+
if-no-files-found: error
36+
retention-days: 30

0 commit comments

Comments
 (0)