From 171ec969b4a7bde15a1c2f2b08f8d96ee193a28a Mon Sep 17 00:00:00 2001 From: cccs-br Date: Thu, 28 Dec 2023 15:24:53 -0500 Subject: [PATCH] Try this one. --- .github/workflows/maven.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 2925ab9..c37860f 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -6,7 +6,7 @@ # separate terms of service, privacy policy, and support # documentation. -name: Java CI with Maven +name: Build and Publish on: push: @@ -18,6 +18,10 @@ jobs: build: runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: - uses: actions/checkout@v3 @@ -27,8 +31,11 @@ jobs: java-version: '11' distribution: 'temurin' cache: maven + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file + - name: Build with Maven - run: mvn -B package --file pom.xml + run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive # - name: Update dependency graph