From eafb30ae92506a79d766cc22b9ec6be65cb19ede Mon Sep 17 00:00:00 2001 From: YouWenKee Date: Wed, 28 Aug 2024 10:50:53 +0800 Subject: [PATCH] Corrected jar file path --- .github/workflows/ci.yml | 2 +- .github/workflows/maven-build.yml | 44 +++++++++++++++---------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6038accf2..b0423e4da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,4 +48,4 @@ jobs: path: target/site/jacoco/** - name: Run Deployment - run: java -jar target/your-app.jar + run: java -jar target/spring-petclinic-3.3.0-SNAPSHOT.jar diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index 4718a6ce5..15658e949 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -1,29 +1,29 @@ # 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://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven -name: Java CI with Maven +# name: Java CI with Maven -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] +# on: +# push: +# branches: [ main ] +# pull_request: +# branches: [ main ] -jobs: - build: +# jobs: +# build: - runs-on: ubuntu-latest - strategy: - matrix: - java: [ '17' ] +# runs-on: ubuntu-latest +# strategy: +# matrix: +# java: [ '17' ] - steps: - - uses: actions/checkout@v4 - - name: Set up JDK ${{matrix.java}} - uses: actions/setup-java@v4 - with: - java-version: ${{matrix.java}} - distribution: 'adopt' - cache: maven - - name: Build with Maven Wrapper - run: ./mvnw -B package +# steps: +# - uses: actions/checkout@v4 +# - name: Set up JDK ${{matrix.java}} +# uses: actions/setup-java@v4 +# with: +# java-version: ${{matrix.java}} +# distribution: 'adopt' +# cache: maven +# - name: Build with Maven Wrapper +# run: ./mvnw -B package