Skip to content

Commit

Permalink
Merge pull request #97 from shokakucarrier/master
Browse files Browse the repository at this point in the history
add GitHub actions
  • Loading branch information
shokakucarrier authored Nov 14, 2023
2 parents f02dda3 + 23509ed commit 342c0c2
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: build on maven

on:
watch:
types: [started]
pull_request:
types: [opened, reopened, edited]
push:
branches:
- main
- master

workflow_dispatch:

jobs:
build:
name: Build with maven by ${{ github.actor }}
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
env:
MAVEN_OPTS: "-Xmx4096m -Xms2048m -XX:MaxMetaspaceSize=4096m -Xss8m"
steps:
- uses: actions/checkout@v4

- name: Set up JDK 11 for x64
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
architecture: x64

- uses: s4u/[email protected]
with:
servers: |
[{
"id": "sonatype-nexus-snapshots",
"username": "${{ secrets.SONATYPE_BOT_USERNAME }}",
"password": "${{ secrets.SONATYPE_BOT_TOKEN }}"
}]
- name: Build the Maven verify phase
run: mvn -B -V clean verify -Prun-its -Pci

- name: Deploy the artifact
run: mvn help:effective-settings -B -V clean deploy -e

0 comments on commit 342c0c2

Please sign in to comment.