mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-12-27 19:07:28 +00:00
Add GitHub Actions workflow for Maven build
Signed-off-by: ramakrishnanooka1359-dotcom <ramakrishnanooka1359@gmail.com>
This commit is contained in:
parent
3e1ce239f4
commit
02dd174479
1 changed files with 31 additions and 0 deletions
31
.github/workflows/first_.yml
vendored
Normal file
31
.github/workflows/first_.yml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue