You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2021/12/04 09:46:59 UTC

[ws-axiom] branch master updated: Automatically deploy to Nexus

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-axiom.git


The following commit(s) were added to refs/heads/master by this push:
     new 2fe9b26  Automatically deploy to Nexus
2fe9b26 is described below

commit 2fe9b26602c48a8c60e3ce50a4d6fcf7eef70e4b
Author: Andreas Veithen <an...@gmail.com>
AuthorDate: Sat Dec 4 09:46:52 2021 +0000

    Automatically deploy to Nexus
---
 .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 05ecfb0..d63c126 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -56,3 +56,33 @@ jobs:
       run: mvn -B -e -Papache-release -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-axiom'
+    name: Deploy
+    runs-on: ubuntu-18.04
+    needs: build
+    steps:
+    - name: Checkout
+      uses: actions/checkout@v2
+    - name: Cache Maven Repository
+      uses: actions/cache@v2
+      with:
+        path: ~/.m2/repository
+        key: maven-deploy-${{ hashFiles('**/pom.xml') }}
+        restore-keys: |
+          maven-deploy-
+          maven-
+    - name: Set up Java
+      uses: actions/setup-java@v1
+      with:
+        java-version: 11
+        server-id: apache.snapshots.https
+        server-username: NEXUS_USER
+        server-password: NEXUS_PW
+    - name: Deploy
+      run: mvn -B -e -Papache-release -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