From b3c20eb661457f331e19bdeff96a6c6b3bfc508e Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Mon, 6 Jun 2022 16:37:59 +0200 Subject: [PATCH] mise a jour de la CI pour ajouter le jar en tant qu'artefact de sortie --- .github/workflows/maven.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 7c89f78..3329c9f 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,4 +1,4 @@ -name: Java CI with Maven +name: Java CI/CD with Maven on: - push @@ -15,7 +15,13 @@ jobs: distribution: 'zulu' java-package: 'jdk+fx' cache: maven - - name: Run headless test + - name: Build and run headless test uses: GabrielBB/xvfb-action@v1 with: run: mvn -B package --file pom.xml + + - name: Upload resulting executable + uses: actions/upload-artifact@v2 + with: + name: jar file + path: target/sae201-1.0-SNAPSHOT.jar