diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index c61c938..d6a7044 100755 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -23,9 +23,5 @@ jobs: distribution: 'temurin' cache: maven - - uses: s4u/maven-settings-action@v3.0.0 - with: - servers: '[{"id": "central", "username": "${{ secrets.CENTRAL_USERNAME }}", "password": "${{ secrets.CENTRAL_PASSWORD }}"}]' - - name: Build with Maven run: mvn -B package --file pom.xml diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index e441a07..e1e753d 100755 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -23,7 +23,7 @@ jobs: - uses: s4u/maven-settings-action@v3.0.0 with: - servers: '[{"id": "central", "username": "${{ secrets.CENTRAL_USERNAME }}", "password": "${{ secrets.CENTRAL_PASSWORD }}"}]' + servers: '[{"id": "central", "username": "${{ secrets.CENTRAL_USERNAME }}", "password": "${{ secrets.CENTRAL_TOKEN }}"}]' - name: Build with Maven run: mvn -B package --file pom.xml