From 5956849a49f5a3827e82b59206c3a39cdca55363 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 21 Feb 2024 22:08:20 +0100 Subject: [PATCH] Create build.yml --- .gitea/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..a89b76c --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,31 @@ +name: SharePulse Build + +on: + push: + branches: + - main + +jobs: + build-jar: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up JDK 21 + uses: actions/setup-java@v2 + with: + java-version: '21' + distribution: 'adopt' + + - name: Grant execute permission for gradlew + run: chmod +x ./gradlew + + - name: Build .jar with Maven + run: ./gradlew clean bootJar + + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: jar-artifact + path: build/libs/*.jar \ No newline at end of file