]> khamidou — GitHub mirrors - safetensors.git/commitdiff
Fix doc build actions (#70)
authorMishig <dmishig@gmail.com>
Thu, 17 Nov 2022 09:37:40 +0000 (10:37 +0100)
committerGitHub <noreply@github.com>
Thu, 17 Nov 2022 09:37:40 +0000 (10:37 +0100)
* Fix doc build actions

* Add remaining doc gh ymls

.github/workflows/build_documentation.yml [new file with mode: 0644]
.github/workflows/build_pr_documentation.yml
.github/workflows/delete_doc_comment.yml [new file with mode: 0644]

diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml
new file mode 100644 (file)
index 0000000..b9d1284
--- /dev/null
@@ -0,0 +1,18 @@
+name: Build documentation
+
+on:
+  push:
+    branches:
+      - main
+      - doc-builder*
+      - v*-release
+      - use_templates
+
+jobs:
+  build:
+    uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@main
+    with:
+      commit_sha: ${{ github.sha }}
+      package: safetensors
+      package_path: safetensors/bindings/python/
+      install_rust: true
index b6b606abe915d235fe704f95ceecb0ccb53e6cbe..b121384f15355300998922a1ba2f4ce449b8b0e5 100644 (file)
@@ -9,7 +9,7 @@ concurrency:
 
 jobs:
   build:
-    uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@safetensors
+    uses: huggingface/doc-builder/.github/workflows/build_pr_documentation.yml@main
     with:
       commit_sha: ${{ github.event.pull_request.head.sha }}
       pr_number: ${{ github.event.number }}
diff --git a/.github/workflows/delete_doc_comment.yml b/.github/workflows/delete_doc_comment.yml
new file mode 100644 (file)
index 0000000..50b04ed
--- /dev/null
@@ -0,0 +1,13 @@
+name: Delete dev documentation
+
+on:
+  pull_request:
+    types: [ closed ]
+
+
+jobs:
+  delete:
+    uses: huggingface/doc-builder/.github/workflows/delete_doc_comment.yml@main
+    with:
+      pr_number: ${{ github.event.number }}
+      package: safetensors
\ No newline at end of file