Skip to content

Commit

Permalink
Add settings action
Browse files Browse the repository at this point in the history
  • Loading branch information
jperedadnr committed Jun 21, 2024
1 parent 9a8d486 commit 791ca88
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ jobs:
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN

- name: Maven settings
uses: s4u/[email protected]
with:
servers: |
[{
"id": "ossrh",
"username": "${{ secrets.TOKEN_USER }}",
"password": "${{ secrets.TOKEN_KEY }}"
}]
- name: Build project (macOS)
if: runner.os == 'macOS'
run: |
Expand All @@ -50,6 +60,3 @@ jobs:
./mvnw -B -ntp -Dmaven.test.skip=true deploy -f rta
fi
shell: bash
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}

0 comments on commit 791ca88

Please sign in to comment.