diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9fa9abf..211b291 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,22 +1,38 @@ -name: Java CI with Gradle +name: Build -on: [ push, pull_request ] +on: + push: + branches: + - master + pull_request: + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: build-${{ github.ref }} + cancel-in-progress: true jobs: build: runs-on: ubuntu-latest + timeout-minutes: 15 steps: - name: Checkout - uses: actions/checkout@v3.0.1 - - name: Set up JDK 17 - uses: actions/setup-java@v3.1.1 + uses: actions/checkout@v4 + - name: Set up JDK 21 + uses: actions/setup-java@v4 with: distribution: temurin - java-version: 17 + java-version: '21' + - name: Set up Gradle + uses: gradle/actions/setup-gradle@v4 - name: Build - run: ./gradlew build + run: ./gradlew --no-daemon clean build - name: Upload artifact - uses: actions/upload-artifact@v3.0.0 + uses: actions/upload-artifact@v4 with: name: framedImage - path: build/libs/framedimage*.jar \ No newline at end of file + path: build/libs/framedimage*.jar + if-no-files-found: error diff --git a/README.md b/README.md index ef69923..e7a72e1 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ High performance Bukkit/Folia plugin for map-arts. +Requires Java 21+. + Features: