Skip to content

Commit

Permalink
ci: workaround any special character issues on autostage (#4570)
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun authored May 2, 2024
1 parent b865254 commit 84586e5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 84586e5

Please sign in to comment.