diff --git a/.github/workflows/maven.yml b/.github/workflows/build.yml similarity index 57% rename from .github/workflows/maven.yml rename to .github/workflows/build.yml index 319f036..5ef9c9c 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,3 @@ - name: Auto Release on: @@ -12,7 +11,7 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 # Setup JDK - name: Setup Java JDK @@ -20,20 +19,14 @@ jobs: with: java-version: 17 distribution: 'zulu' - - - name: Restore Maven cache - uses: skjolber/maven-cache-github-action@v1 - with: - step: restore - + # Build - - name: Build with Maven - run: mvn package - - - name: Save Maven cache - uses: skjolber/maven-cache-github-action@v1 - with: - step: save + - name: Make gradlew executable + run: chmod +x gradlew + + - name: Build with Gradle + run: ./gradlew build + - name: Auto release uses: "marvinpinto/action-automatic-releases@latest" with: @@ -41,4 +34,4 @@ jobs: automatic_release_tag: latest prerelease: false files: | - target/GeyserModelEnginePackGenerator*.jar + build/libs/GeyserModelEnginePackGenerator*.jar