From e0c72a748c827eff87e976c33d79681b08e23fb6 Mon Sep 17 00:00:00 2001 From: Simon Otterbeck Date: Mon, 12 Aug 2024 15:48:15 +0200 Subject: [PATCH] ci: build with Gradle on GitHub Actions --- .github/workflows/build-gradle-project.yml | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build-gradle-project.yml diff --git a/.github/workflows/build-gradle-project.yml b/.github/workflows/build-gradle-project.yml new file mode 100644 index 0000000..57ddf11 --- /dev/null +++ b/.github/workflows/build-gradle-project.yml @@ -0,0 +1,33 @@ +name: Build Gradle project + +on: + push: + +jobs: + build-gradle-project: + runs-on: ubuntu-latest + steps: + - name: Checkout project sources + uses: actions/checkout@v4 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + with: + build-scan-publish: true + build-scan-terms-of-use-url: "https://gradle.com/terms-of-service" + build-scan-terms-of-use-agree: "yes" + + - name: Run build + run: ./gradlew build + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: Package + path: entrypoints/papermc/build/libs \ No newline at end of file