Skip to content

Commit

Permalink
docs: Deploy website to nightlies for every tags (#3739)
Browse files Browse the repository at this point in the history
* docs: Deploy website to nightlies for every tags

Signed-off-by: Xuanwo <[email protected]>

* Add deploy to stable

Signed-off-by: Xuanwo <[email protected]>

---------

Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored Dec 12, 2023
1 parent 6078c3f commit fd6db0c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -382,3 +382,27 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: website/build
publish_branch: gh-pages

- name: Deploy to nightlies for tagged version
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 }}

- name: Deploy to nightlies for stable version
uses: burnett01/[email protected]
if: "startsWith(github.ref, 'refs/tags/')"
with:
switches: -avzr --delete
path: website/build/*
remote_path: ${{ secrets.NIGHTLIES_RSYNC_PATH }}/opendal/opendal-docs-stable
remote_host: ${{ secrets.NIGHTLIES_RSYNC_HOST }}
remote_port: ${{ secrets.NIGHTLIES_RSYNC_PORT }}
remote_user: ${{ secrets.NIGHTLIES_RSYNC_USER }}
remote_key: ${{ secrets.NIGHTLIES_RSYNC_KEY }}

0 comments on commit fd6db0c

Please sign in to comment.