Update maven.yml
This commit is contained in:
parent
9f9cbf5a1b
commit
a14188af8a
1 changed files with 45 additions and 40 deletions
11
.github/workflows/maven.yml
vendored
11
.github/workflows/maven.yml
vendored
|
|
@ -1,10 +1,9 @@
|
||||||
name: Java CI
|
name: Hadder
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
@ -14,6 +13,12 @@ jobs:
|
||||||
java-version: 1.13
|
java-version: 1.13
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: test
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
|
steps:
|
||||||
- name: Build Final Jar
|
- name: Build Final Jar
|
||||||
run: mvn clean compile assembly:single
|
run: mvn clean compile assembly:single
|
||||||
- name: Copy folder content recursively to remote
|
- name: Copy folder content recursively to remote
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue