From 980423a1f036963d4abc945287fa0747bb361377 Mon Sep 17 00:00:00 2001 From: KafeinTR Date: Thu, 16 Nov 2023 21:37:56 +0300 Subject: [PATCH] Add github workflows and funding file. --- .github/FUNDING.yml | 1 + .github/workflows/gradle.yml | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/gradle.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..8bb5c62 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: KafeinDev \ No newline at end of file diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..893e7a7 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,32 @@ +name: Java CI with Gradle + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build with Gradle + run: ./gradlew shadowJar + + - name: Upload build artifact + uses: actions/upload-artifact@v3 + with: + name: plugin + path: bukkit/build/libs/MultiDuels-*.jar \ No newline at end of file