This is an automated email from the ASF dual-hosted git repository. veithen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/ws-xmlschema.git
The following commit(s) were added to refs/heads/master by this push: new 3e7614c9 Automatically deploy to Nexus 3e7614c9 is described below commit 3e7614c93eb880d3ae9a2d412391c54fdf8bdf83 Author: Andreas Veithen <andreas.veit...@gmail.com> AuthorDate: Sun Jul 16 12:30:43 2023 +0100 Automatically deploy to Nexus --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01bf62fe..26cf7e81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,3 +50,34 @@ jobs: run: mvn -B -e -Prelease -Dgpg.skip=true verify - name: Remove Snapshots run: find ~/.m2/repository -name '*-SNAPSHOT' -a -type d -print0 | xargs -0 rm -rf + deploy: + if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'apache/ws-xmlschema' + name: Deploy + runs-on: ubuntu-22.04 + needs: build + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Cache Maven Repository + uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: maven-deploy-${{ hashFiles('**/pom.xml') }} + restore-keys: | + maven-deploy- + maven- + - name: Set up Java + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: 11 + server-id: apache.snapshots.https + server-username: NEXUS_USER + server-password: NEXUS_PW + - name: Deploy + run: mvn -B -e -Prelease -Dgpg.skip=true -DskipTests=true deploy + env: + NEXUS_USER: ${{ secrets.NEXUS_USER }} + NEXUS_PW: ${{ secrets.NEXUS_PW }} + - name: Remove Snapshots + run: find ~/.m2/repository -name '*-SNAPSHOT' -a -type d -print0 | xargs -0 rm -rf