Skip to content

Commit

Permalink
ci: Add branch update document strategy (#14083)
Browse files Browse the repository at this point in the history
  • Loading branch information
SWHL authored Oct 24, 2024
1 parent 0a610f9 commit c70936c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_publish_develop_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Build/Publish Develop Docs
on:
push:
branches:
- master
- main
- "release/**"
permissions:
contents: write
jobs:
Expand All @@ -14,7 +13,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
Expand All @@ -28,4 +27,5 @@ 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
VERSION="v"$(${{ github.ref_name }} | cut -d "/" -f2)
mike deploy --push VERSION

0 comments on commit c70936c

Please sign in to comment.