diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 26301992871..efdc3ad205a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,4 +36,14 @@ jobs: ${{ runner.os}}-node_modules- - name: Build ${{ matrix.java-version }} run: mvn -B clean test + - name: Package JAR + if: github.ref == 'refs/heads/master' + run: mvn -B package -DskipTests + - name: Upload JAR Artifact + if: github.ref == 'refs/heads/master' + uses: actions/upload-artifact@v4 + with: + name: graphhopper-jar-${{ matrix.java-version }} + path: web/target/*.jar + retention-days: 90