From 5fbda365ee6a3c261777bb6020532c28ee2171a6 Mon Sep 17 00:00:00 2001 From: flytreeleft Date: Fri, 26 Jun 2020 13:13:08 +0800 Subject: [PATCH] Update github workflow to disable nexus3's staging integration --- .github/workflows/maven.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml index f0738cc..1da22ae 100644 --- a/.github/workflows/maven.yaml +++ b/.github/workflows/maven.yaml @@ -29,5 +29,10 @@ jobs: GITHUB_USERNAME: ${{ github.actor }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - # Note: the 'release' profile should be disable, we will do publish with github repository - mvn deploy -P ,-release -Dmaven.test.skip=true --settings .github/workflows/maven-settings.xml --file pom.xml + # Note: disable staging integration (buildsupport-staging.skip=true), + # it will push the artifacts to the nexus's repository which isn't owned by us + mvn clean deploy -X \ + -Dbuildsupport-staging.skip=true \ + -Dmaven.test.skip=true \ + --settings .github/workflows/maven-settings.xml \ + --file pom.xml