From 8dce6a9f3e69bd1f59995638eb20fbacddad7802 Mon Sep 17 00:00:00 2001 From: cccs-br Date: Thu, 28 Dec 2023 15:07:15 -0500 Subject: [PATCH] Build and publish --- .github/workflows/maven.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 19f702b..06e4114 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -27,13 +27,11 @@ jobs: java-version: '11' distribution: 'temurin' cache: maven - - name: Build with Maven - run: mvn -B package --file pom.xml - - run: mkdir staging && cp target/*.jar staging - - uses: actions/upload-artifact@v3 - with: - name: Package - path: staging + - name: Build and Publish with Maven + run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml + env: + GITHUB_TOKEN: ${{ github.token }} + # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - name: Update dependency graph