From 009549ea1ee251ac7c191a4a37c1abc7663d27e3 Mon Sep 17 00:00:00 2001 From: potzplitz <127513690+potzplitz@users.noreply.github.com> Date: Sun, 3 Mar 2024 12:57:19 +0100 Subject: [PATCH] Update maven.yml --- .github/workflows/maven.yml | 36 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 21 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 82fe6f9..e5247f5 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,4 +1,12 @@ -name: Java Maven Build & Publish Artifact +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Java CI with Maven on: push: @@ -7,8 +15,10 @@ on: branches: [ "main" ] jobs: - build_test: + build: + runs-on: ubuntu-latest + steps: - uses: actions/checkout@v3 - name: Set up JDK 17 @@ -19,23 +29,7 @@ jobs: cache: maven - name: Build with Maven run: mvn -B package --file pom.xml - - name: Upload artifact - uses: actions/upload-artifact@v3 - with: - name: packaged-jar - path: target/*.jar - publish-job: - runs-on: ubuntu-latest - needs: build_test - steps: - - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 - with: - name: packaged-jar - path: staging - - uses: actions/setup-java@v3 - with: - java-version: '17' - distribution: 'temurin' - # Hier können Sie weitere Schritte hinzufügen, um das Artefakt zu verwenden + # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive + - name: Update dependency graph + uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6