From cbd83a0f34e9e0845a7ae2939c33db55f808e193 Mon Sep 17 00:00:00 2001 From: turtledevv <62922384+coolboy67yt@users.noreply.github.com> Date: Sat, 31 May 2025 11:46:21 -0500 Subject: [PATCH] Add github action to compile JAR --- .github/workflows/build.yml | 52 +++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c180d56 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,52 @@ +name: Build + +on: + push: + branches: + - main + paths-ignore: + - README.md + - .gitignore + - .gitattributes + - '**/.git/*' + pull_request: + branches: + - main + paths-ignore: + - README.md + - .gitignore + - .gitattributes + - '**/*.md' + - '**/.git/*' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + fetch-tags: true + + - name: Setup JDK 21 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + + - name: Grant execute permission to gradlew + run: chmod +x gradlew + + - name: Build with Gradle + run: ./gradlew build + + - name: Upload Build Artifact + uses: actions/upload-artifact@v4 + with: + name: main-build + path: build/libs/*.jar +