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] on: [workflow_dispatch]
jobs: jobs:
build: build_and_test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: '2'
steps: steps:
- uses: actions/checkout@v2
- name: Set up JDK 11 - name: Set up JDK 11
uses: actions/setup-java@v3 uses: actions/setup-java@v1
with: with:
java-version: '11' with:
distribution: 'adopt' java-version: '11'
architecture: x64 distribution: 'adopt'
cache: maven architecture: x64
cache: maven
- name: Build with Maven - name: Build project with Maven
run: mvn clean package run: mvn -B package --file pom.xml
- name: check for jar
run: ls -ltr ./target/