on: [push] jobs: build: runs-on: docker container: eclipse-temurin:21-alpine steps: - name: Install build dependencies run: apk add git nodejs curl - name: Checkout uses: https://github.com/actions/checkout@v4 - name: Download NMS run: ./tools/download_nms.sh ~ - name: Build for 1.21.4 run: ./mvnw package -Dproject.minecraft.version=1.21.4 -Dproject.craftbukkit.version=v1_21_R3 - name: Build for 1.21.3 run: ./mvnw package -Dproject.minecraft.version=1.21.3 -Dproject.craftbukkit.version=v1_21_R2 - name: Build for 1.21.1 run: ./mvnw package -Dproject.minecraft.version=1.21.1 -Dproject.craftbukkit.version=v1_21_R1 - name: Upload artifacts uses: https://github.com/actions/upload-artifact@v3 with: path: target/tweaks-*.jar