-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fixup release nodejs and rc site (#4569)
Signed-off-by: tison <[email protected]>
- Loading branch information
Showing
2 changed files
with
11 additions
and
2 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
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 |
---|---|---|
|
@@ -488,13 +488,20 @@ jobs: | |
publish_dir: website/build | ||
publish_branch: site/main-staging | ||
|
||
- name: Prepare rc staged name | ||
if: ${{ startsWith(github.ref, 'refs/tags/') && contains(github.ref, 'rc') }} | ||
run: | | ||
export OPENDAL_WEBSITE_STAGED_NAME=$(echo ${{ github.ref_name }} | sed 's/[.-]/_/g') | ||
echo OPENDAL_WEBSITE_STAGED_NAME=${OPENDAL_WEBSITE_STAGED_NAME} | ||
echo OPENDAL_WEBSITE_STAGED_NAME=${OPENDAL_WEBSITE_STAGED_NAME} >> $GITHUB_ENV | ||
- name: Deploy to rc staged | ||
uses: peaceiris/[email protected] | ||
if: ${{ startsWith(github.ref, 'refs/tags/') && contains(github.ref, 'rc') }} | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: website/build | ||
publish_branch: site/${{ github.ref_name }}-staging | ||
publish_branch: site/${{ env.OPENDAL_WEBSITE_STAGED_NAME }}-staging | ||
|
||
- name: Clear build | ||
run: rm -rf ./website/build | ||
|