diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 8cefb35..62c755f 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -27,5 +27,16 @@ jobs: java-version: '21' distribution: 'temurin' cache: maven + - name: Cache Maven packages + uses: actions/cache@v1 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 - name: Build with Maven run: mvn -B package --file pom.xml + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: KitPvP.jar + path: target/KitPvP-1.0-SNAPSHOT.jar \ No newline at end of file