adding gh action maven build

This commit is contained in:
2023-11-13 13:47:15 +00:00
parent 9095f02baf
commit 6f026636eb
+13 -14
View File
@@ -1,23 +1,22 @@
name: Maven Project Build
name: Maven CI/CD
on: [workflow_dispatch]
jobs:
build:
build_and_test:
runs-on: ubuntu-latest
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: '2'
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v1
with:
java-version: '11'
distribution: 'adopt'
architecture: x64
cache: maven
with:
java-version: '11'
distribution: 'adopt'
architecture: x64
cache: maven
- name: Build with Maven
run: mvn clean package
- name: check for jar
run: ls -ltr ./target/
- name: Build project with Maven
run: mvn -B package --file pom.xml