From 70fbcf913b5c78c5394cde1737e9d06ffd188076 Mon Sep 17 00:00:00 2001 From: rattatwinko Date: Fri, 9 May 2025 16:04:41 +0200 Subject: [PATCH] Changes + Trying a new build attempt -- Files + .gitea/workflows/build.yml --- .gitea/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..a7bb16e --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,32 @@ +name: Kotlin Maven Build + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + + - name: Cache Maven packages + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2- + + - name: Build with Maven + run: mvn -B clean package --file pom.xml + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: motd-plugin + path: target/*.jar \ No newline at end of file