From 02dd17447966e4971770323a2ddc5769af82fbab Mon Sep 17 00:00:00 2001 From: ramakrishnanooka1359-dotcom Date: Fri, 5 Dec 2025 15:41:34 +0530 Subject: [PATCH] Add GitHub Actions workflow for Maven build Signed-off-by: ramakrishnanooka1359-dotcom --- .github/workflows/first_.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/first_.yml 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