diff --git a/.github/workflows/maven-v1.yml b/.github/workflows/maven-v1.yml index 80f7df613f..8750860e5c 100644 --- a/.github/workflows/maven-v1.yml +++ b/.github/workflows/maven-v1.yml @@ -18,7 +18,7 @@ jobs: uses: actions/setup-java@v1 with: java-version: ${{ matrix.java }} - server-id: sonatype-nexus-snapshots + server-id: ossrh server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD - name: Cache local Maven repository @@ -28,14 +28,14 @@ jobs: key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - - name: Build with Maven + - name: Build with Maven, Deploy snapshot to maven central run: | - mvn -B verify --file pom.xml + mvn --no-transfer-progress -B verify --file pom.xml export MY_POM_VERSION=`mvn -q -Dexec.executable="echo" -Dexec.args='${projects.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec` echo "POM VERSION" ${MY_POM_VERSION} if [[ $MY_POM_VERSION =~ ^.*SNAPSHOT$ ]]; then - mvn -B clean deploy + mvn --no-transfer-progress -B clean deploy else echo "not deploying release: " ${MY_POM_VERSION} fi