From 9ff81509d9cad8bc41075d424926537b7bf0a86b Mon Sep 17 00:00:00 2001 From: TheClashFruit Date: Thu, 4 Jan 2024 17:24:37 +0100 Subject: [PATCH] feat: add workflow --- .gitea/workflows/build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..7485c92 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,28 @@ +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: + path: build/libs/*.jar \ No newline at end of file