This is an automated email from the ASF dual-hosted git repository. sebb pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-numbers.git
The following commit(s) were added to refs/heads/master by this push: new 9b4e034d Restrict deploy 9b4e034d is described below commit 9b4e034d045d3b720d08980250877f0dedea5957 Author: Sebb <s...@apache.org> AuthorDate: Wed Dec 20 18:04:15 2023 +0000 Restrict deploy --- .github/workflows/maven.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 638f7fdc..47bd9d91 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -48,8 +48,14 @@ jobs: env: NEXUS_USER: ${{ secrets.NEXUS_USER }} NEXUS_PW: ${{ secrets.NEXUS_PW }} - run: mvn --show-version --batch-mode --no-transfer-progress clean javadoc:javadoc deploy -Dgpg.skip - # N.B. the default goal is 'clean verify javadoc:javadoc'; verify is included in deploy + run: mvn --show-version --batch-mode --no-transfer-progress + - name: Deploy SNAPSHOT + # must run directly after 'Build with Maven' + if: matrix.java == 8 && github.repository == 'apache/commons-numbers' && github.ref_name == 'master' + env: + NEXUS_USER: ${{ secrets.NEXUS_USER }} + NEXUS_PW: ${{ secrets.NEXUS_PW }} + run: mvn --show-version --batch-mode --no-transfer-progress deploy -Dgpg.skip - name: Build with Maven including examples # Examples require Java 11+. # Building javadoc errors when run with the package phase with an error about