This commit is contained in:
ramakrishnanooka1359-dotcom 2025-12-05 10:17:49 +00:00 committed by GitHub
commit 10aab9ab04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 62 additions and 0 deletions

31
.github/workflows/first_.yml vendored Normal file
View file

@ -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

31
.github/workflows/maven-build2.yml vendored Normal file
View file

@ -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