From 670f2b5dbd1e4ca4410583979666eb6658b269a2 Mon Sep 17 00:00:00 2001 From: Saturn <90934664+Saturn745@users.noreply.github.com> Date: Sat, 2 Sep 2023 19:13:24 +0000 Subject: [PATCH] ci: add build workflow (#3) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * GitHub CI (Untested) * Fix * Remove BukkitTest for now due to missing gradle plugin * Readd Bukkit Test * build: add plugins repo * ci: build currency-money --------- Co-authored-by: Jozef Steinhübl --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ settings.gradle.kts | 1 + 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..eeb29cd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,22 @@ +name: CI +on: [push, workflow_dispatch] +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: 'adopt' + - name: Build with Gradle + run: | + ./gradlew shadowJar -p bukkittest + ./gradlew shadowJar -p bukkit + ./gradlew shadowJar -p currency-money + - uses: actions/upload-artifact@v3 + with: + name: Built Jars + path: | + ./build/libs/*.jar diff --git a/settings.gradle.kts b/settings.gradle.kts index ea43780..854271b 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -17,5 +17,6 @@ pluginManagement { mavenLocal() mavenCentral() gradlePluginPortal() + maven("https://repo.jopga.me/releases") } }