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

piergiorgio pushed a commit to branch CONNECTORS-1754
in repository https://gitbox.apache.org/repos/asf/manifoldcf.git


The following commit(s) were added to refs/heads/CONNECTORS-1754 by this push:
     new 6fb509592 Fix for deploying artifacts to the Apache Nexus
6fb509592 is described below

commit 6fb509592b43f2f4a0e591b76b14489705efeb19
Author: Piergiorgio Lucidi <[email protected]>
AuthorDate: Mon Jun 17 10:19:20 2024 +0200

    Fix for deploying artifacts to the Apache Nexus
---
 .github/workflows/create-release-candidate.yml |  6 +--
 .github/workflows/publish-snapshot.yml         | 53 ++++++++++++++++++++++++++
 2 files changed, 56 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/create-release-candidate.yml 
b/.github/workflows/create-release-candidate.yml
index 5c4385603..967f967cb 100644
--- a/.github/workflows/create-release-candidate.yml
+++ b/.github/workflows/create-release-candidate.yml
@@ -36,9 +36,9 @@ jobs:
     steps:
       - name: Init Release Candidate workflow
         run: echo "Starting Apache ManifoldCF workflow for building ${{ 
github.event.inputs.releasecandidatetag }}"
-      - uses: actions/[email protected]
+      - uses: actions/[email protected]
       - name: Set up OpenJDK 11 Temurin x64
-        uses: actions/[email protected]
+        uses: actions/[email protected]
         with:
           java-version: '11'
           distribution: 'temurin'
@@ -94,7 +94,7 @@ jobs:
         run: ant make-core-deps make-deps image
       
       - name: Maven Build
-        run: mvn clean install -DskipTests -DskipITs
+        run: mvn clean install -DskipTests -DskipITs -B
       
       - name: RAT licence checks
         run: mvn -pl . apache-rat:check
diff --git a/.github/workflows/publish-snapshot.yml 
b/.github/workflows/publish-snapshot.yml
new file mode 100644
index 000000000..85952b28a
--- /dev/null
+++ b/.github/workflows/publish-snapshot.yml
@@ -0,0 +1,53 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+name: "Publish Apache ManifoldCF Snapshot to Maven Snapshot Repository"
+
+on:
+  push:
+    branches:
+      - master
+
+jobs:
+  deploy:
+    if: github.repository == 'apache/manifoldcf'
+    name: "Deploy Apache ManifoldCF Snapshot"
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/[email protected]
+      - name: Set up Java
+        uses: actions/[email protected]
+        with:
+          java-version: '11'
+          distribution: 'temurin'
+          architecture: x64
+          cache: maven
+          server-id: apache.snapshots.https
+          server-username: NEXUS_USER
+          server-password: NEXUS_PW
+      - name: Ant Build
+        run: ant make-core-deps make-deps image
+      - name: Maven Build
+        run: mvn clean install -DskipTests -DskipITs
+      - name: Deploy
+        run: mvn deploy -DskipTests -DskipITs -Dmaven.javadoc.skip=true -B -V
+        env:
+          NEXUS_USER: ${{ secrets.NEXUS_USER }}
+          NEXUS_PW: ${{ secrets.NEXUS_PW }}

Reply via email to