adding gh action maven build
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user