You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2023/01/03 23:45:34 UTC

[logging-log4j-tools] branch master updated: Random attempts, take 6

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

vy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4j-tools.git


The following commit(s) were added to refs/heads/master by this push:
     new 00652c6  Random attempts, take 6
00652c6 is described below

commit 00652c628ba4a3d7399cf38053844fdccf224cfb
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Wed Jan 4 00:46:29 2023 +0100

    Random attempts, take 6
---
 .github/workflows/build.yml          | 11 +++++------
 .github/workflows/maven-settings.xml | 28 ++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e8ad678..182ca93 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -169,14 +169,13 @@ jobs:
           cat ~/.m2/settings.xml
           ./mvnw \
             --show-version --batch-mode --errors --no-transfer-progress \
+            -Dgpg.skip=true \
             -DskipTests=true \
-            -DinstallAtEnd=true \
-            -DdeployAtEnd=true \
-            package install:install deploy:deploy -X
+            --settings .github/workflows/maven-settings.xml \
+            package install:install deploy:deploy
         env:
-          NEXUS_USERNAME: ${{ secrets.NEXUS_USER }}
-          NEXUS_PASSWORD: ${{ secrets.NEXUS_PW }}
-          SIGN_KEY: ${{ secrets.GPG_SECRET_KEY }}
+          NEXUS_USER: ${{ secrets.NEXUS_USER }}
+          NEXUS_PW: ${{ secrets.NEXUS_PW }}
           MAVEN_OPTS: "-Djavax.net.debug=ssl -Djava.util.logging.config.file=.github/workflows/simplelogger.properties"
 
       - name: Create artifacts (RELEASE)
diff --git a/.github/workflows/maven-settings.xml b/.github/workflows/maven-settings.xml
new file mode 100644
index 0000000..c7453df
--- /dev/null
+++ b/.github/workflows/maven-settings.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF8"?>
+<!--
+  ~ 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.
+  -->
+<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0"
+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
+  <servers>
+    <server>
+      <id>apache.snapshots.https</id>
+      <username>${env.NEXUS_USER}</username>
+      <password>${env.NEXUS_PW}</password>
+    </server>
+  </servers>
+</settings>