From 588e1547e3ac8d9e3811f548ccacb398d66cc236 Mon Sep 17 00:00:00 2001 From: xEcho1337 <123984252+xEcho1337@users.noreply.github.com> Date: Tue, 15 Oct 2024 12:08:49 +0200 Subject: [PATCH] Testing out auto build when pushing an update --- .github/workflows/gradle.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..d08c822 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,32 @@ +name: Build + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'adopt' + java-version: '17' + + - name: Grant execute permission for gradlew + run: chmod +x ./gradlew + + - name: Build with Gradle (ShadowJar) + run: ./gradlew shadowJar + + - name: Archive build artifacts + uses: actions/upload-artifact@v3 + with: + name: build-artifacts + path: build/libs/*.jar