Avoid private tokens to be white listed and allow any word character … #117
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Maven deploy snapshot | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [11] | |
name: Java ${{ matrix.java }} building ... | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Java ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: 'temurin' | |
cache: maven | |
server-id: sonatype-nexus-snapshots | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
- name: Build with Maven | |
run: mvn -B deploy --file pom.xml -DdisableXmlReport=true -Djacoco.skip=true -Dpmd.skip=true | |
env: | |
MAVEN_USERNAME: ${{ secrets.OSSRHUSERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.OSSRHPASSWORD }} |