Skip to content

Commit

Permalink
Try this one.
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-br committed Dec 28, 2023
1 parent 52f15f2 commit 171ec96
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# separate terms of service, privacy policy, and support
# documentation.

name: Java CI with Maven
name: Build and Publish

on:
push:
Expand All @@ -18,6 +18,10 @@ jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write


steps:
- uses: actions/checkout@v3
Expand All @@ -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
Expand Down

0 comments on commit 171ec96

Please sign in to comment.