This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch branch-1.6
in repository https://gitbox.apache.org/repos/asf/orc.git


The following commit(s) were added to refs/heads/branch-1.6 by this push:
     new 86d5e46  ORC-708: Use maven command directly (#598)
86d5e46 is described below

commit 86d5e46a61154d12cb7dff37318300bba7bdf3ed
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Sun Jan 3 01:01:15 2021 -0800

    ORC-708: Use maven command directly (#598)
    
    ### What changes were proposed in this pull request?
    
    This PR aims to use `maven deploy` directly.
    
    ### Why are the changes needed?
    
    Apache repository doesn't allow 3rd party GitHub Action script.
    
    ### How was this patch tested?
    
    Tested locally.
    
    (cherry picked from commit f6b6b2ea70f1b74e2ffd897e8985ffcd1c082582)
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 .github/workflows/publish_snapshot.yml | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/publish_snapshot.yml 
b/.github/workflows/publish_snapshot.yml
index d725068..e193ea3 100644
--- a/.github/workflows/publish_snapshot.yml
+++ b/.github/workflows/publish_snapshot.yml
@@ -16,10 +16,11 @@ jobs:
       with:
         java-version: 8
 
-    - name: Release Maven package
-      uses: samuelmeuli/action-maven-publish@v1
-      with:
-        directory: java
-        server_id: apache.snapshots.https
-        nexus_username: ${{ secrets.NEXUS_USER }}
-        nexus_password: ${{ secrets.NEXUS_PW }}
+    - name: Publish snapshot
+      env:
+        ASF_USERNAME: ${{ secrets.NEXUS_USER }}
+        ASF_PASSWORD: ${{ secrets.NEXUS_PW }}
+      run: |
+        cd java
+        echo 
"<settings><servers><server><id>apache.snapshots.https</id><username>$ASF_USERNAME</username><password>$ASF_PASSWORD</password></server></servers></settings>"
 > settings.xml
+        mvn --settings settings.xml -DskipTests deploy

Reply via email to