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