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