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

xuanwo pushed a commit to branch versionize-docs
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit 555a64363c93c55c14eb816dcd788d751e76d9ec
Author: Xuanwo <[email protected]>
AuthorDate: Mon Dec 11 15:55:25 2023 +0800

    docs: Deploy website to nightlies for every tags
    
    Signed-off-by: Xuanwo <[email protected]>
---
 .github/workflows/docs.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 2dbecd430..fc17151cc 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -378,3 +378,15 @@ jobs:
           github_token: ${{ secrets.GITHUB_TOKEN }}
           publish_dir: website/build
           publish_branch: gh-pages
+
+      - name: Deploy to nightlies
+        uses: burnett01/[email protected]
+        if: "startsWith(github.ref, 'refs/tags/')"
+        with:
+          switches: -avzr
+          path: website/build/*
+          remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH 
}}/opendal/opendal-docs-release-${{ github.ref_name }}
+          remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
+          remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
+          remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
+          remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}

Reply via email to