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

jiafengzheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new f0be964f77b fix
f0be964f77b is described below

commit f0be964f77b2ecc7e80ef483c18426f2308e0c73
Author: jiafeng.zhang <zhang...@gmail.com>
AuthorDate: Wed Aug 24 15:17:41 2022 +0800

    fix
---
 .github/workflows/cron-deploy-website.yml | 22 ++++++++++++++++++++++
 .github/workflows/manual-deploy.yml       | 10 ++++++++++
 2 files changed, 32 insertions(+)

diff --git a/.github/workflows/cron-deploy-website.yml 
b/.github/workflows/cron-deploy-website.yml
index 17ee1e915a6..084fe2f32f3 100644
--- a/.github/workflows/cron-deploy-website.yml
+++ b/.github/workflows/cron-deploy-website.yml
@@ -34,6 +34,16 @@ jobs:
         touch build/.dummy
         ls build
         export DORIS_COMMIT=`git rev-parse HEAD`
+    - name: Upload files to OSS
+      uses: ./.github/actions/aliyun-oss-website-action
+      with:
+          accessKeyId: ${{ secrets.ALIYUN_ACCESS_KEY_ID }}
+          accessKeySecret: ${{ secrets.ALIYUN_ACCESS_KEY_SECRET }}
+          bucket: ${{ secrets.ALIYUN_OSS_BUCKET }}
+          # use your own endpoint
+          endpoint: ${{ secrets.ALIYUN_OSS_ENDPOINT }}
+          folder: build
+
     - name: Deploy website
       if: ${{ github.event.inputs.branch == 'master' }}
       run: |
@@ -55,3 +65,15 @@ jobs:
         git add .
         git commit -m "Automated deployment with doris master"
         git push --verbose "https://${{ secrets.GITHUB_TOKEN 
}}@github.com/apache/doris-website.git" asf-site:asf-site
+
+    - name: Deploy Branch
+      if: ${{ github.event.inputs.branch != 'master' }}
+      uses: peaceiris/actions-gh-pages@v3
+      with:
+        github_token: ${{ secrets.GITHUB_TOKEN }}
+        publish_branch: asf-site
+        publish_dir: ./build
+        destination_dir: ${{ github.event.inputs.branch }}
+        user_name: 'github-actions[bot]'
+        user_email: 'github-actions[bot]@users.noreply.github.com'
+        commit_message: 'Automated deployment with doris branch ${{ 
github.event.inputs.branch }}@${{ env.DORIS_COMMIT }}'
diff --git a/.github/workflows/manual-deploy.yml 
b/.github/workflows/manual-deploy.yml
index 9cd93d454bf..c1bb95e6697 100644
--- a/.github/workflows/manual-deploy.yml
+++ b/.github/workflows/manual-deploy.yml
@@ -37,6 +37,16 @@ jobs:
         touch build/.dummy
         ls build
         export DORIS_COMMIT=`git rev-parse HEAD`
+    - name: Upload files to OSS
+      uses: ./.github/actions/aliyun-oss-website-action
+      with:
+          accessKeyId: ${{ secrets.ALIYUN_ACCESS_KEY_ID }}
+          accessKeySecret: ${{ secrets.ALIYUN_ACCESS_KEY_SECRET }}
+          bucket: ${{ secrets.ALIYUN_OSS_BUCKET }}
+          # use your own endpoint
+          endpoint: ${{ secrets.ALIYUN_OSS_ENDPOINT }}
+          folder: build
+                  
     - name: Deploy website
       if: ${{ github.event.inputs.branch == 'master' }}
       run: |


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to