From 4b829faff4e6f8878cc80bb809e6e4aa4fadaba8 Mon Sep 17 00:00:00 2001 From: TheClashFruit Date: Thu, 10 Aug 2023 13:12:55 +0200 Subject: [PATCH] feat: add build workflow --- .gitea/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..bb40f23 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,29 @@ +name: Build Project + +on: + push: + branches: [ main ] + pull_request: + branches: [ main, dev/* ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + - name: Setup Java + uses: actions/setup-java@v2 + with: + distribution: "temurin" + java-version: 17 + - name: Make Gradle Executable + run: chmod +x ./gradlew + - name: Build with Gradle + run: ./gradlew clean build + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: build + path: build/libs/*.jar \ No newline at end of file