This is an automated email from the ASF dual-hosted git repository.
pgaref pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/master by this push:
new f6b6b2e ORC-708: Use maven command directly (#598)
f6b6b2e is described below
commit f6b6b2ea70f1b74e2ffd897e8985ffcd1c082582
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.
---
.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 15f468a..1eeba6e 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