From 3a5fc0fd88170d610b3f4ef8c0d37da5e9d257d8 Mon Sep 17 00:00:00 2001 From: MISHA <185427799+sprytex@users.noreply.github.com> Date: Thu, 5 Dec 2024 23:47:47 +0400 Subject: [PATCH] actions (#1) * Update maven-publish.yml --- .github/workflows/maven-publish.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 03c3538..d8845af 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -1,20 +1,25 @@ name: Build and upload jar - on: push: branches: [ master ] - + pull_request: + branches: [ master ] jobs: build: - runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 - - name: Set up JDK 8 + - name: Set up JDK 21 uses: actions/setup-java@v4 with: distribution: 'temurin' - java-version: '8' + java-version: '21' - name: Build with Maven - run: mvn package --file pom.xml -Dmaven.compiler.failOnWarning=false \ No newline at end of file + run: mvn -B package --file pom.xml + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3.1.2 + with: + # Artifact name + name: SnowballFight + # A file, directory or wildcard pattern that describes what to upload + path: target/*.jar