Skip to content

Commit

Permalink
Merge pull request #36 from shokakucarrier/master
Browse files Browse the repository at this point in the history
switched github actions to new workflow
  • Loading branch information
shokakucarrier authored Nov 21, 2023
2 parents 084b2b7 + 57d9996 commit a471b9f
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 104 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: build on maven

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

workflow_dispatch:

jobs:
build:
name: Build with maven
runs-on: ubuntu-latest
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:
sonatypeSnapshots: true

- name: Build the Maven verify phase
run: mvn -B -V clean verify -Prun-its -Pci


- uses: s4u/[email protected]
if: ${{ github.event_name == 'push' }}
with:
servers: |
[{
"id": "sonatype-nexus-snapshots",
"username": "${{ secrets.SONATYPE_BOT_USERNAME }}",
"password": "${{ secrets.SONATYPE_BOT_TOKEN }}"
}]
- name: Deploy the artifact
if: ${{ github.event_name == 'push' }}
run: mvn help:effective-settings -B -V clean deploy -e
60 changes: 0 additions & 60 deletions .github/workflows/merge-build.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/pr-build.yml

This file was deleted.

0 comments on commit a471b9f

Please sign in to comment.