Jelajahi Sumber

Merge pull request #2940 from Sidney233/master

使用 GitHub Action 实现持续集成
Xiaomeng Zhao 4 bulan lalu
induk
melakukan
a61d20d885
4 mengubah file dengan 28 tambahan dan 2 penghapusan
  1. 1 1
      .github/workflows/cla.yml
  2. 22 0
      .github/workflows/mkdocs.yml
  3. 4 0
      docs/requirements.txt
  4. 1 1
      mkdocs.yml

+ 1 - 1
.github/workflows/cla.yml

@@ -29,7 +29,7 @@ jobs:
           path-to-document: 'https://github.com/opendatalab/MinerU/blob/master/MinerU_CLA.md' # e.g. a CLA or a DCO document
           # branch should not be protected
           branch: 'master'
-          allowlist: myhloli,dt-yy,Focusshang,renpengli01,icecraft,drunkpig,wangbinDL,qiangqiang199,GDDGCZ518,papayalove,conghui,quyuan,LollipopsAndWine
+          allowlist: myhloli,dt-yy,Focusshang,renpengli01,icecraft,drunkpig,wangbinDL,qiangqiang199,GDDGCZ518,papayalove,conghui,quyuan,LollipopsAndWine,Sidney233
 
          # the followings are the optional inputs - If the optional inputs are not given, then default values will be taken
           #remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)

+ 22 - 0
.github/workflows/mkdocs.yml

@@ -0,0 +1,22 @@
+name: Publish docs via GitHub Pages
+on:
+  push:
+    branches:
+      - "master"
+      - "dev"
+
+jobs:
+  build:
+    name: Deploy docs
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout master
+        uses: actions/checkout@v4
+        with:
+          ref: master
+      - name: Deploy docs
+        uses: mhausenblas/mkdocs-deploy-gh-pages@master
+        # Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
+        env:
+          PERSONAL_TOKEN: ${{ secrets.MINERU_DOCS }}
+          REQUIREMENTS: /docs/requirements.txt

+ 4 - 0
docs/requirements.txt

@@ -0,0 +1,4 @@
+mkdocs
+mkdocs-static-i18n
+markdown-gfm-admonition
+mkdocs-video

+ 1 - 1
mkdocs.yml

@@ -1,5 +1,5 @@
 site_name: MinerU
-site_url: https://sidney233.github.io/MinerU/
+site_url: https://opendatalab.github.io/MinerU
 repo_name: opendatalab/MinerU
 repo_url: https://github.com/opendatalab/MinerU