You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2020/12/07 01:14:50 UTC

[spark] branch branch-2.4 updated: [SPARK-33675][INFRA][2.4] Add GitHub Action job to publish snapshot

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

gurwls223 pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-2.4 by this push:
     new 955033a  [SPARK-33675][INFRA][2.4] Add GitHub Action job to publish snapshot
955033a is described below

commit 955033ac4658b636a8d1bf03b68d4dda1c241cc8
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Mon Dec 7 10:08:28 2020 +0900

    [SPARK-33675][INFRA][2.4] Add GitHub Action job to publish snapshot
    
    ### What changes were proposed in this pull request?
    
    This PR aims to add `GitHub Action` job to publish snapshot from `branch-2.4`.
    
    ### Why are the changes needed?
    
    This will remove our maintenance burden for `branch-2.4` LTS and will stop automatically when we don't have any commit on `branch-2.4`.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    N/A
    
    Closes #30629 from dongjoon-hyun/SPARK-33675-2.4.
    
    Authored-by: Dongjoon Hyun <do...@apache.org>
    Signed-off-by: HyukjinKwon <gu...@apache.org>
---
 .github/workflows/publish_snapshot.yml | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/.github/workflows/publish_snapshot.yml b/.github/workflows/publish_snapshot.yml
new file mode 100644
index 0000000..af70c48
--- /dev/null
+++ b/.github/workflows/publish_snapshot.yml
@@ -0,0 +1,31 @@
+name: Publish Snapshot
+
+on:
+  push:
+    branches:
+    - branch-2.4
+
+jobs:
+  publish-snapshot:
+    runs-on: ubuntu-latest
+    steps:
+    - name: Checkout Spark repository
+      uses: actions/checkout@master
+    - name: Cache Maven local repository
+      uses: actions/cache@v2
+      with:
+        path: ~/.m2/repository
+        key: snapshot-maven-${{ hashFiles('**/pom.xml') }}
+        restore-keys: |
+          snapshot-maven-
+    - name: Install Java 8
+      uses: actions/setup-java@v1
+      with:
+        java-version: 8
+    - name: Publish snapshot
+      env:
+        ASF_USERNAME: ${{ secrets.NEXUS_USER }}
+        ASF_PASSWORD: ${{ secrets.NEXUS_PW }}
+        GPG_KEY: "not_used"
+        GPG_PASSPHRASE: "not_used"
+      run: ./dev/create-release/release-build.sh publish-snapshot


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org