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

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


The following commit(s) were added to refs/heads/main by this push:
     new ed5bed6  Add publish_snapshot.yml
ed5bed6 is described below

commit ed5bed63ae352bb695ca1b0af402558c76d14a2f
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Tue Dec 5 10:46:21 2023 -0800

    Add publish_snapshot.yml
---
 .github/workflows/publish_snapshot.yml | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/.github/workflows/publish_snapshot.yml 
b/.github/workflows/publish_snapshot.yml
new file mode 100644
index 0000000..5a91bcb
--- /dev/null
+++ b/.github/workflows/publish_snapshot.yml
@@ -0,0 +1,27 @@
+name: Publish Snapshot
+
+on:
+  push:
+    branches:
+    - main
+
+jobs:
+  publish-snapshot:
+    if: github.repository == 'apache/orc'
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@master
+
+    - uses: actions/setup-java@v3
+      with:
+        distribution: zulu
+        java-version: 17
+
+    - 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
+        ./mvnw --settings settings.xml -nsu -ntp -DskipTests deploy

Reply via email to