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

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


The following commit(s) were added to refs/heads/main by this push:
     new 1b1a58c  Add `deploy-site-pro.yaml` workflow
1b1a58c is described below

commit 1b1a58ca69a439d4e38ac41a9853a6581b81b9ba
Author: Volkan Yazıcı <vol...@yazi.ci>
AuthorDate: Thu Apr 11 09:48:57 2024 +0200

    Add `deploy-site-pro.yaml` workflow
---
 .github/workflows/deploy-site-pro.yaml      | 49 +++++++++++++++++++++++++++++
 .github/workflows/deploy-site-reusable.yaml |  2 +-
 2 files changed, 50 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/deploy-site-pro.yaml 
b/.github/workflows/deploy-site-pro.yaml
new file mode 100644
index 0000000..70fca46
--- /dev/null
+++ b/.github/workflows/deploy-site-pro.yaml
@@ -0,0 +1,49 @@
+#
+# 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: deploy-site-pro
+
+on:
+  workflow_dispatch:
+    inputs:
+      source-branch:
+        description: The branch, tag, or SHA to checkout and run the Maven 
`site` goal on.
+        required: true
+        type: string
+
+permissions: read-all
+
+jobs:
+
+  deploy-site-pro:
+    needs: build
+    if: github.repository == 'apache/logging-parent'
+    uses: 
apache/logging-parent/.github/workflows/deploy-site-reusable.yaml@main
+    # Secrets for committing the generated site
+    secrets:
+      GPG_SECRET_KEY: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
+    # Write permissions for committing the generated site
+    permissions:
+      contents: write
+    with:
+      asf-yaml-content: |
+        publish:
+          profile: ~
+          whoami: main-site-pro
+          subdir: content/logging-parent
+      source-branch: ${{ inputs.source-branch }}
+      target-branch: main-site-pro
diff --git a/.github/workflows/deploy-site-reusable.yaml 
b/.github/workflows/deploy-site-reusable.yaml
index 4225189..1626a70 100644
--- a/.github/workflows/deploy-site-reusable.yaml
+++ b/.github/workflows/deploy-site-reusable.yaml
@@ -34,7 +34,7 @@ on:
         type: boolean
       source-branch:
         description: |
-          The branch, tag or SHA to checkout and run the Maven `site` goal on.
+          The branch, tag, or SHA to checkout and run the Maven `site` goal on.
           When checking out the repository that triggered a workflow, this 
defaults to the reference or SHA for that event.
           Otherwise, the default branch of the repository will be used.
         default: ""

Reply via email to