Skip to content

Commit a471b9f

Browse files
Merge pull request #36 from shokakucarrier/master
switched github actions to new workflow
2 parents 084b2b7 + 57d9996 commit a471b9f

File tree

3 files changed

+51
-104
lines changed

3 files changed

+51
-104
lines changed

.github/workflows/maven-build.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: build on maven
2+
3+
on:
4+
watch:
5+
types: [started]
6+
pull_request:
7+
types: [opened, reopened, edited, synchronize, ready_for_review]
8+
push:
9+
branches:
10+
- main
11+
- master
12+
13+
workflow_dispatch:
14+
15+
jobs:
16+
build:
17+
name: Build with maven
18+
runs-on: ubuntu-latest
19+
env:
20+
MAVEN_OPTS: "-Xmx4096m -Xms2048m -XX:MaxMetaspaceSize=4096m -Xss8m"
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Set up JDK 11 for x64
25+
uses: actions/setup-java@v3
26+
with:
27+
java-version: '11'
28+
distribution: 'temurin'
29+
architecture: x64
30+
31+
- uses: s4u/maven-settings-action@v2.8.0
32+
with:
33+
sonatypeSnapshots: true
34+
35+
- name: Build the Maven verify phase
36+
run: mvn -B -V clean verify -Prun-its -Pci
37+
38+
39+
- uses: s4u/maven-settings-action@v2.8.0
40+
if: ${{ github.event_name == 'push' }}
41+
with:
42+
servers: |
43+
[{
44+
"id": "sonatype-nexus-snapshots",
45+
"username": "${{ secrets.SONATYPE_BOT_USERNAME }}",
46+
"password": "${{ secrets.SONATYPE_BOT_TOKEN }}"
47+
}]
48+
49+
- name: Deploy the artifact
50+
if: ${{ github.event_name == 'push' }}
51+
run: mvn help:effective-settings -B -V clean deploy -e

.github/workflows/merge-build.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/pr-build.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)