-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(website): polish deploy to nightlies (#3753)
* docs(website): polish deploy to nightlies Signed-off-by: suyanhanx <[email protected]> * Update docs.yml * Update docs.yml * revert to normal using Signed-off-by: suyanhanx <[email protected]> * update env name Signed-off-by: suyanhanx <[email protected]> * append Signed-off-by: suyanhanx <[email protected]> * slash Signed-off-by: suyanhanx <[email protected]> --------- Signed-off-by: suyanhanx <[email protected]> Co-authored-by: Xuanwo <[email protected]>
- Loading branch information
Showing
3 changed files
with
41 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -383,25 +383,45 @@ jobs: | |
publish_dir: website/build | ||
publish_branch: gh-pages | ||
|
||
- name: Clear build | ||
run: rm -rf ./website/build | ||
|
||
- name: Build for nightlies with tagged version | ||
working-directory: website | ||
run: pnpm build | ||
env: | ||
# Keep this same with the remote_path below | ||
OPENDAL_WEBSITE_BASE_URL: /opendal/opendal-docs-release-${{ github.ref_name }}/ | ||
OPENDAL_WEBSITE_NOT_LATEST: true | ||
|
||
- 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 }} | ||
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: Clear build | ||
run: rm -rf ./website/build | ||
|
||
- name: Build for nightlies with stable version | ||
working-directory: website | ||
run: pnpm build | ||
env: | ||
OPENDAL_WEBSITE_BASE_URL: /opendal/opendal-docs-stable/ | ||
|
||
- 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 | ||
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 }} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters