-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (30 loc) · 1.04 KB
/
build.yml
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
32
33
34
name: Build IPF Gazelle with Maven with Java 17
on: [push, pull_request]
env:
MAVEN_OPTS: -Xmx1024m
jobs:
build:
runs-on: ubuntu-latest
name: Java 17 build
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
cache: 'maven'
- name: Build with Maven
run: mvn -B clean package --file pom.xml
# Publish somewhere
# Maybe in a separate action file
# for publishing/releasing: https://github.com/marketplace/actions/action-maven-publish
# see https://github.com/organizations/oehf/settings/secrets/actions
- name: Deploy to Sonatype Snapshot Repo
uses: samuelmeuli/action-maven-publish@v1
with:
gpg_private_key: ${{ secrets.gpg_private_key }}
gpg_passphrase: ${{ secrets.gpg_passphrase }}
nexus_username: ${{ secrets.nexus_username }}
nexus_password: ${{ secrets.nexus_password }}