From 639791c6e2b79102e8c52b9cb32b6a724cad62db Mon Sep 17 00:00:00 2001 From: Mishig Date: Thu, 17 Nov 2022 10:37:40 +0100 Subject: [PATCH] Fix doc build actions (#70) * Fix doc build actions * Add remaining doc gh ymls --- .github/workflows/build_documentation.yml | 18 ++++++++++++++++++ .github/workflows/build_pr_documentation.yml | 2 +- .github/workflows/delete_doc_comment.yml | 13 +++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build_documentation.yml create mode 100644 .github/workflows/delete_doc_comment.yml diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml new file mode 100644 index 0000000..b9d1284 --- /dev/null +++ b/.github/workflows/build_documentation.yml @@ -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 diff --git a/.github/workflows/build_pr_documentation.yml b/.github/workflows/build_pr_documentation.yml index b6b606a..b121384 100644 --- a/.github/workflows/build_pr_documentation.yml +++ b/.github/workflows/build_pr_documentation.yml @@ -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 index 0000000..50b04ed --- /dev/null +++ b/.github/workflows/delete_doc_comment.yml @@ -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 -- 2.43.0