-
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: workaround any special character issues on autostage (#4570)
Signed-off-by: tison <[email protected]>
- Loading branch information
Showing
1 changed file
with
1 addition
and
8 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 |
---|---|---|
|
@@ -488,20 +488,13 @@ 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/${{ env.OPENDAL_WEBSITE_STAGED_NAME }}-staging | ||
publish_branch: site/rc-staging | ||
|
||
- name: Clear build | ||
run: rm -rf ./website/build | ||
|