Skip to content

Commit 4507262

Browse files
committed
fix docs update to gh-pages branch
Signed-off-by: guangli.bao <guangli.bao@daocloud.io>
1 parent 121dcdc commit 4507262

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,3 +223,20 @@ jobs:
223223
user_name: ${{ github.actor }}
224224
user_email: ${{ github.actor }}@users.noreply.github.com
225225
publish_branch: gh-pages
226+
227+
deploy-docs:
228+
permissions:
229+
contents: write
230+
runs-on: ubuntu-latest
231+
steps:
232+
- name: Checkout
233+
uses: actions/checkout@v3
234+
- name: Deploy docs to gh-pages branch
235+
uses: peaceiris/actions-gh-pages@v3
236+
with:
237+
github_token: ${{ secrets.GITHUB_TOKEN }}
238+
publish_dir: ./site
239+
keep_files: false
240+
user_name: ${{ github.actor }}
241+
user_email: ${{ github.actor }}@users.noreply.github.com
242+
publish_branch: gh-pages

0 commit comments

Comments
 (0)