From 89235cd5e52864c617b21f1d9ed2e9cfdad702dd Mon Sep 17 00:00:00 2001 From: Emilien Raclot <31826333+WarnDa@users.noreply.github.com> Date: Sat, 31 Jan 2026 10:29:01 +0100 Subject: [PATCH] Add GitHub Actions workflow for build process --- .github/workflows/build.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 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..1bbac11 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +name: Build + +on: + push: + branches: + - "**" + pull_request: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + permissions: + contents: read + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Java 17 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: "17" + cache: gradle + + - name: Validate Gradle Wrapper + uses: gradle/actions/wrapper-validation@v4 + + - name: Fix gradlew permissions + run: chmod +x ./gradlew + + - name: Build (shadowJar included) + run: ./gradlew --no-daemon clean build + + - name: Upload JAR artifact + uses: actions/upload-artifact@v4 + with: + name: DeluxeCoinflip-jar + path: build/libs/*.jar + if-no-files-found: error