Ver código fonte

update for 3.1.2 (#4338)

cuicheng01 4 meses atrás
pai
commit
3d1dda6684
3 arquivos alterados com 33 adições e 2 exclusões
  1. 31 0
      .github/workflows/deploy_docs.yml
  2. 1 1
      mkdocs.yml
  3. 1 1
      paddlex/.version

+ 31 - 0
.github/workflows/deploy_docs.yml

@@ -0,0 +1,31 @@
+name: Develop Docs
+on:
+  push:
+    branches: #设置更新哪个分支会更新站点
+      - release/3.1
+permissions:
+  contents: write
+jobs:
+  deploy:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+      - name: Configure Git Credentials
+        run: |
+          git config user.name github-actions[bot]
+          git config user.email 41898282+github-actions[bot]@users.noreply.github.com
+      - uses: actions/setup-python@v5
+        with:
+          python-version: 3.x
+      - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
+      - uses: actions/cache@v4
+        with:
+          key: mkdocs-material-${{ env.cache_id }}
+          path: .cache
+          restore-keys: |
+            mkdocs-material-
+      - run: pip install mike mkdocs-material jieba mkdocs-git-revision-date-localized-plugin mkdocs-git-committers-plugin-2 mkdocs-git-authors-plugin mkdocs-static-i18n mkdocs-minify-plugin 
+      - run: |
+          git fetch origin gh-pages --depth=1
+          mike deploy --push --update-aliases 3.1 latest
+          mike set-default --push latest

+ 1 - 1
mkdocs.yml

@@ -242,7 +242,7 @@ plugins:
             FAQ: FAQ
             近期更新: Recently Update
       repository: PaddlePaddle/PaddleX #仓库名称
-      branch: release/3.0-rc1 #仓库分支
+      branch: release/3.1 #仓库分支
   - git-revision-date-localized: #显示更新时间
       enable_creation_date: true
 

+ 1 - 1
paddlex/.version

@@ -1 +1 @@
-3.1.0
+3.1.2