Skip to content
This repository was archived by the owner on Oct 24, 2020. It is now read-only.

Commit 4b01269

Browse files
committed
Add maven.yml
1 parent 0550594 commit 4b01269

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/maven.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Java CI with Maven
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up JDK 11
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 11
20+
- name: Grant execute permission for mvnw
21+
run: chmod +x mvnw
22+
- name: Build with Maven
23+
run: ./mvnw -B package --file pom.xml
24+
- name: Release Maven package
25+
uses: samuelmeuli/action-maven-publish@v1
26+
with:
27+
gpg_private_key: ${{ secrets.SIGNING_KEY }}
28+
gpg_passphrase: ${{ secrets.SIGNING_PASSWORD }}
29+
nexus_username: ${{ secrets.OSSRH_USERNAME }}
30+
nexus_password: ${{ secrets.OSSRH_PASSWORD }}
31+
if: "github.event_name != 'pull_request'"

0 commit comments

Comments
 (0)