You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by do...@apache.org on 2020/12/03 01:23:55 UTC

[orc] branch branch-1.6 updated: ORC-689: Add GitHubAction job to publish snapshot (#573)

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 24a81e0  ORC-689: Add GitHubAction job to publish snapshot (#573)
24a81e0 is described below

commit 24a81e0fc2d735b544ee9a6b8ddf5f3e9919f69f
Author: Dongjoon Hyun <do...@apache.org>
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 507a03e2ce1948441b9ecad930cbba5abc97c643)
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
 .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..9ed7808
--- /dev/null
+++ b/.github/workflows/publish_snapshot.yml
@@ -0,0 +1,24 @@
+name: Publish Snapshot
+
+on:
+  push:
+    branches:
+    - branch-1.6
+
+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 }}