mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-03 21:53:39 +08:00
ci: Support seperate update of branch docs (#14079)
This commit is contained in:
parent
661cda1289
commit
19926a69cd
@ -4,6 +4,8 @@ on:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
- "release/**"
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
jobs:
|
||||
@ -14,7 +16,7 @@ jobs:
|
||||
- name: Configure Git Credentials
|
||||
run: |
|
||||
git config user.name github-actions[bot]
|
||||
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
||||
git config user.email github-actions[bot]@users.noreply.github.com
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.x
|
||||
@ -28,4 +30,6 @@ jobs:
|
||||
- run: pip install mike mkdocs-material jieba mkdocs-git-revision-date-localized-plugin mkdocs-git-committers-plugin-2 mkdocs-static-i18n
|
||||
- run: |
|
||||
git fetch origin gh-pages --depth=1
|
||||
mike deploy --push --update-aliases main latest
|
||||
mike deploy --push ${{ github.ref_name }}
|
||||
mike alias main latest
|
||||
mike set-default main
|
||||
|
Loading…
x
Reference in New Issue
Block a user