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

jark pushed a commit to branch release-0.6
in repository https://gitbox.apache.org/repos/asf/fluss.git


The following commit(s) were added to refs/heads/release-0.6 by this push:
     new d1fd995b [website] Setup CI/CD for apache fluss website
d1fd995b is described below

commit d1fd995b8deac06354a4727b9b020fa3990bd800
Author: Jark Wu <[email protected]>
AuthorDate: Fri Jul 11 22:01:17 2025 +0800

    [website] Setup CI/CD for apache fluss website
---
 .github/workflows/docs-deploy.yaml | 48 ++++++++++++++------------------------
 1 file changed, 18 insertions(+), 30 deletions(-)

diff --git a/.github/workflows/docs-deploy.yaml 
b/.github/workflows/docs-deploy.yaml
index 922a1e99..17dd1b3a 100644
--- a/.github/workflows/docs-deploy.yaml
+++ b/.github/workflows/docs-deploy.yaml
@@ -1,9 +1,11 @@
 
################################################################################
-# Copyright (c) 2025 Alibaba Group Holding Ltd.
-#
-# Licensed 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
+# 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
 #
@@ -20,33 +22,19 @@ on:
     paths:
       - 'website/**'
 
+# We use `repository_dispatch` to trigger the deployment job on the 
apache/fluss-website repository.
+# 
https://github.com/apache/fluss-website/blob/main/.github/workflows/website-deploy.yaml
+# 
https://docs.github.com/en/actions/reference/events-that-trigger-workflows#repository_dispatch
 jobs:
   deploy:
     runs-on: ubuntu-latest
-    defaults:
-      run:
-        working-directory: ./website
     steps:
-      - uses: actions/checkout@v4
-        with:
-          ref: main
-          fetch-depth: 0
-      - name: Generate versioned docs
-        run: ./build_versioned_docs.sh
-      - uses: actions/setup-node@v4
-        with:
-          node-version: 18
-      - name: Install dependencies
-        run: npm install
-      - name: Build website
-        run: npm run build -- --no-minify
-      - uses: webfactory/[email protected]
-        with:
-          ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
-      - name: Deploy website
-        env:
-          USE_SSH: true
+      - name: Send Event to Trigger Deploy
         run: |
-          git config --global user.email "[email protected]"
-          git config --global user.name "gh-actions"
-          npm run deploy -- --skip-build
\ No newline at end of file
+          curl -L \
+            -X POST \
+            -H "Accept: application/vnd.github+json" \
+            -H "Authorization: Bearer ${{ secrets.GH_TOKEN }}" \
+            -H "X-GitHub-Api-Version: 2022-11-28" \
+            https://api.github.com/repos/apache/fluss-website/dispatches \
+            -d '{"event_type":"website-deploy","client_payload":{"repository": 
"apache/fluss"}}'
\ No newline at end of file

Reply via email to