You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jz...@apache.org on 2022/11/26 00:09:16 UTC
[opennlp] branch master updated: OPENNLP-1391: Publish SNAPSHOT artifacts to the Apache snapshots repo from CI (#433)
This is an automated email from the ASF dual-hosted git repository.
jzemerick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/opennlp.git
The following commit(s) were added to refs/heads/master by this push:
new 28d515be OPENNLP-1391: Publish SNAPSHOT artifacts to the Apache snapshots repo from CI (#433)
28d515be is described below
commit 28d515be0c10c9a5f22484bddfe553a4400d688e
Author: Dr. Richard Zowalla <13...@users.noreply.github.com>
AuthorDate: Sat Nov 26 01:09:10 2022 +0100
OPENNLP-1391: Publish SNAPSHOT artifacts to the Apache snapshots repo from CI (#433)
---
.github/workflows/publish-snapshots.yml | 51 +++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/.github/workflows/publish-snapshots.yml b/.github/workflows/publish-snapshots.yml
new file mode 100644
index 00000000..554fadcc
--- /dev/null
+++ b/.github/workflows/publish-snapshots.yml
@@ -0,0 +1,51 @@
+#
+# 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 snapshot artifacts
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ publish:
+ name: Publish snapshot artifacts
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Cache Maven Repository
+ uses: actions/cache@v2
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
+ - name: Setup Java
+ uses: actions/setup-java@v2
+ with:
+ distribution: adopt
+ java-version: 11
+ - name: Deploy Maven snapshots
+ env:
+ ASF_USERNAME: ${{ secrets.NEXUS_USER }}
+ ASF_PASSWORD: ${{ secrets.NEXUS_PW }}
+ run: |
+ echo "<settings><servers><server><id>apache.snapshots.https</id><username>$ASF_USERNAME</username><password>$ASF_PASSWORD</password></server></servers></settings>" > settings.xml
+ mvn --settings settings.xml -U -B -e -fae -ntp -DskipTests deploy