diff --git a/.github/workflows/first_.yml b/.github/workflows/first_.yml new file mode 100644 index 000000000..e7017b0df --- /dev/null +++ b/.github/workflows/first_.yml @@ -0,0 +1,31 @@ +name: Maven Build and Package + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Source Code + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + + - name: Build with Maven + run: mvn clean package -DskipTests + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: spring-petclinic-jar + path: target/*.jar diff --git a/.github/workflows/maven-build2.yml b/.github/workflows/maven-build2.yml new file mode 100644 index 000000000..e7017b0df --- /dev/null +++ b/.github/workflows/maven-build2.yml @@ -0,0 +1,31 @@ +name: Maven Build and Package + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Source Code + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + + - name: Build with Maven + run: mvn clean package -DskipTests + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: spring-petclinic-jar + path: target/*.jar