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

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

commit 35f68c32623f955fc3c5d19958e9e52a0665c31d
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Sun Nov 29 11:19:48 2020 -0800

    ORC-689: Add GitHubAction job to publish snapshot (#573)
    
    This PR aims to add `GitHub Action` job to publish snapshot like the 
following. The following is generated by this patch from my fork `master` 
branch.
    
    - 
https://repository.apache.org/content/repositories/snapshots/org/apache/orc/orc-core/1.7.0-SNAPSHOT/
    
    Currently, Apache ORC community doesn't provide snapshot artifacts. It 
would be great if we provide it in order to help the downstream projects to 
test it in advance.
    
    This is tested in my ORC fork and we need INFRA team's credential setup.
    
    - https://github.com/dongjoon-hyun/orc/runs/1468464962 (I merged to my 
`master` branch and removed it after testing)
    - https://issues.apache.org/jira/browse/INFRA-21150 (Upload snapshots from 
GitHub Actions)
    
    (cherry picked from commit a70eb7d18e5255fbaaf571ca6d9c57f8c79b2675)
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 .github/workflows/publish_snapshot.yml | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/.github/workflows/publish_snapshot.yml 
b/.github/workflows/publish_snapshot.yml
new file mode 100644
index 0000000..74d8e9a
--- /dev/null
+++ b/.github/workflows/publish_snapshot.yml
@@ -0,0 +1,24 @@
+name: Publish Snapshot
+
+on:
+  push:
+    branches:
+    - branch-1.5
+
+jobs:
+  publish-snapshot:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@master
+
+    - uses: actions/setup-java@v1
+      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_username }}
+        nexus_password: ${{ secrets.nexus_password }}

Reply via email to