Skip to content

Commit

Permalink
Use java action
Browse files Browse the repository at this point in the history
  • Loading branch information
jperedadnr committed Jun 21, 2024
1 parent 5d01583 commit af09c74
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,8 @@ jobs:
distribution: 'oracle'
cache: 'maven'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN

- name: Maven settings
if: github.ref == 'refs/heads/main' && runner.os == 'Linux'
uses: s4u/[email protected]
with:
servers: |
[{
"id": "ossrh",
"username": "${{ secrets.TOKEN_USER }}",
"password": "${{ secrets.TOKEN_KEY }}"
}]
server-username: ${{ secrets.TOKEN_USER }}
server-password: ${{ secrets.TOKEN_KEY }}

- name: Build project (macOS)
if: runner.os == 'macOS'
Expand Down

0 comments on commit af09c74

Please sign in to comment.