Skip to content

Commit

Permalink
Create maven_deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wumpz committed Dec 28, 2023
1 parent a70f0d1 commit b407057
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/maven_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: deploy to sonatype snapshots

on:
workflow_dispatch:

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
java: [8]
name: Java ${{ matrix.java }} building ...

steps:
- uses: actions/checkout@v3
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: maven
server-id: sonatype-nexus-snapshots
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Build with Maven
run: mvn -B deploy --file pom.xml -DdisableXmlReport=true -Djacoco.skip=true -Dpmd.skip=true
env:
MAVEN_USERNAME: ${{ secrets.OSSRHUSERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRHPASSWORD }}

0 comments on commit b407057

Please sign in to comment.