diff --git a/.gitea/workflows/package.yaml b/.gitea/workflows/package.yaml new file mode 100644 index 0000000..63bf484 --- /dev/null +++ b/.gitea/workflows/package.yaml @@ -0,0 +1,32 @@ +name: Build Minecraft Plugin +run-name: ${{ gitea.actor }} is building Minecraft plugin 🚀 +on: [push, pull_request] + +jobs: + build: + name: Build with Maven + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v5 + + - name: Set up JDK 21 and enable Maven cache + uses: actions/setup-java@v5 + with: + distribution: 'liberica' + java-version: '21' + cache: 'maven' + + - name: Set up Maven + uses: stCarolas/setup-maven@v5 + with: + maven-version: 3.9.11 + + - name: Build and package with Maven + run: mvn -B package + + - name: Upload built artifacts + uses: actions/upload-artifact@v3 + with: + name: maven-artifacts + path: target/spigot/*.jar