This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release-2.x by this push:
new 725bfef28f INFRA-23225 Deploy snapshots (once) if all platforms build
successfully.
725bfef28f is described below
commit 725bfef28ff475cc09c3b5f3c644cd22f1e6ffe8
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Fri May 6 22:01:47 2022 +0200
INFRA-23225 Deploy snapshots (once) if all platforms build successfully.
---
.github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++-
1 file changed, 37 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index db9f33fa83..55ac950c60 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -24,6 +24,7 @@ on:
permissions: read-all
jobs:
+
build:
runs-on: ${{ matrix.os }}
@@ -98,8 +99,43 @@ jobs:
--global-toolchains ".github/workflows/maven-toolchains.xml" \
site
+ deploy:
+
+ runs-on: ubuntu-latest
+ needs: build
+ if: github.repository == 'apache/logging-log4j2' && github.ref ==
'refs/heads/release-2.x'
+
+ steps:
+
+ - name: Checkout repository
+ uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748 #
3.0.1
+
+ # JDK 11 is needed for the build.
+ # Search `maven-toolchains-plugin` usages for details.
+ - name: Setup JDK 11
+ uses: actions/setup-java@9519cf1382ac8dc61ad461f7f7cb45f033220189 #
3.1.1
+ with:
+ distribution: temurin
+ java-version: 11
+ java-package: jdk
+ architecture: x64
+ cache: maven
+
+ # JDK 8 is needed for the build, and it is the primary bytecode target.
+ # Hence, JDK 8 is set up after 11, so that JAVA_HOME used by Maven
during build will point to 8.
+ - name: Setup JDK 8
+ uses: actions/setup-java@9519cf1382ac8dc61ad461f7f7cb45f033220189 #
3.1.1
+ with:
+ distribution: temurin
+ java-version: 8
+ java-package: jdk
+ architecture: x64
+ cache: maven
+
+ - name: Inspect environment
+ run: env | grep '^JAVA'
+
- name: Maven "deploy"
- if: github.repository == 'apache/logging-log4j2' && github.ref ==
'refs/heads/release-2.x'
timeout-minutes: 15
shell: bash
run: |