Add GitHub Actions workflow for Maven build

Signed-off-by: ramakrishnanooka1359-dotcom <ramakrishnanooka1359@gmail.com>
This commit is contained in:
ramakrishnanooka1359-dotcom 2025-12-05 15:41:34 +05:30 committed by GitHub
parent 3e1ce239f4
commit 02dd174479
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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