-
Notifications
You must be signed in to change notification settings - Fork 10
31 lines (29 loc) · 872 Bytes
/
Copy pathmain.yml
File metadata and controls
31 lines (29 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Main Build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.1.0
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Install Java and Maven
uses: actions/setup-java@v1.3.0
with:
java-version: 8
- name: Release Maven package
uses: XDean/action-maven-publish@v1.3.3
with:
maven_profiles: release,github-actions
gpg_private_key: ${{ secrets.gpg_private_key }}
gpg_passphrase: ${{ secrets.gpg_passphrase }}
nexus_username: ${{ secrets.nexus_username }}
nexus_password: ${{ secrets.nexus_password }}