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

urfree pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git

commit 0b572bf3369914dcc653fe03b0d1fdb98e0f7219
Author: LiLi <[email protected]>
AuthorDate: Tue Feb 15 15:51:00 2022 +0800

    feat: workflow for docs-sync from apache/pulsar repo
    
    Signed-off-by: LiLi <[email protected]>
---
 .github/workflows/ci-pulsar-website-docs-sync.yaml | 52 ++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/.github/workflows/ci-pulsar-website-docs-sync.yaml 
b/.github/workflows/ci-pulsar-website-docs-sync.yaml
new file mode 100644
index 0000000..3509252
--- /dev/null
+++ b/.github/workflows/ci-pulsar-website-docs-sync.yaml
@@ -0,0 +1,52 @@
+#
+# 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: CI - Pulsar Website-Next build
+on:
+  push:
+    branches: [docs-sync]
+  # schedule:
+  #   - cron: '0 */6 * * *'
+
+env:
+  MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false 
-Dmaven.wagon.http.retryHandler.class=standard 
-Dmaven.wagon.http.retryHandler.count=3
+
+jobs:
+  build-website:
+    if: ${{ github.repository == 'apache/pulsar-site' }}
+    name: Build and publish pulsar website-next
+    runs-on: ubuntu-latest
+    timeout-minutes: 180
+    steps:
+      - name: checkout
+        uses: actions/checkout@v2
+        with:
+          ref: main
+
+      - name: Clone Pulsar
+        env:
+          GH_TOKEN: ${{ secrets.PULSARBOT_TOKEN }}
+          CROWDIN_DOCUSAURUS_API_KEY: ${{ 
secrets.PULSAR_CROWDIN_DOCUSAURUS_API_KEY }}
+        run: |
+          git status
+          # cd ../
+          # git clone https://github.com/apache/pulsar.git
+          # rm -rf pulsar/.git
+          # rm -rf pulsar/site2
+          # mv pulsar/* pulsar-site/

Reply via email to