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

jinsongzhou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-amoro-site.git


The following commit(s) were added to refs/heads/master by this push:
     new be0f64e  add latest docs deploy action in deploy workflow
be0f64e is described below

commit be0f64e8cf6f0c254ae8bec7b28ff6683664f031
Author: zhoujinsong <[email protected]>
AuthorDate: Tue Apr 2 15:54:03 2024 +0800

    add latest docs deploy action in deploy workflow
---
 .github/workflows/deploy.yml | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 58c8bb4..247e633 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -26,7 +26,29 @@ jobs:
           publish_branch: asf-site
           destination_dir: ./output
           keep_files: true
-  deploy-docs-page:
+    deploy-latest-docs-page:
+    if: github.ref == 'refs/heads/master'
+    runs-on: ubuntu-20.04
+    steps:
+      - uses: actions/checkout@v2
+
+      - name: Setup Hugo
+        uses: peaceiris/actions-hugo@v2
+        with:
+          hugo-version: 'latest'
+          extended: true
+
+      - name: Build
+        run: cd amoro-docs && hugo -b https://amoro.apache.org/docs/latest -d 
../output/docs/latest
+
+      - name: Deploy
+        uses: peaceiris/actions-gh-pages@v3
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          publish_dir: ./output/docs/latest
+          publish_branch: asf-site
+          destination_dir: ./output/docs/latest
+  deploy-versioned-docs-page:
     if: github.ref != 'refs/heads/master'
     runs-on: ubuntu-20.04
     continue-on-error: true

Reply via email to