Skip to content

Commit

Permalink
ci: fixed main doc ci (PaddlePaddle#14084)
Browse files Browse the repository at this point in the history
* ci: fixed main doc ci

* Update .github/workflows/build_publish_develop_docs.yml

---------

Co-authored-by: Wang Xin <[email protected]>
  • Loading branch information
SWHL and GreatV authored Oct 24, 2024
1 parent 19926a6 commit f7439b4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build_publish_develop_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
branches:
- master
- main
- "release/**"

permissions:
contents: write
jobs:
Expand All @@ -16,7 +14,7 @@ jobs:
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
Expand All @@ -30,6 +28,4 @@ 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 ${{ github.ref_name }}
mike alias main latest
mike set-default main
mike deploy --push --update-aliases main latest

0 comments on commit f7439b4

Please sign in to comment.