From fb10189ca882418c3234134a038eabae24d28a06 Mon Sep 17 00:00:00 2001 From: Mishig Davaadorj Date: Thu, 1 Dec 2022 09:36:25 +0100 Subject: [PATCH] Add docbuilder github actions --- .github/workflows/build_pr_documentation.yml | 20 ++++++++++++++++++++ .github/workflows/delete_doc_comment.yml | 13 +++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/build_pr_documentation.yml create mode 100644 .github/workflows/delete_doc_comment.yml diff --git a/.github/workflows/build_pr_documentation.yml b/.github/workflows/build_pr_documentation.yml new file mode 100644 index 0000000..bebb89a --- /dev/null +++ b/.github/workflows/build_pr_documentation.yml @@ -0,0 +1,20 @@ +name: Build PR Documentation + +on: + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + build: + 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 }} + package: deep-rl-class + path_to_docs: deep-rl-class/units/ + additional_args: --not_python_module + languages: en + hub_base_path: https://moon-ci-docs.huggingface.co diff --git a/.github/workflows/delete_doc_comment.yml b/.github/workflows/delete_doc_comment.yml new file mode 100644 index 0000000..a286a49 --- /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: deep-rl-class \ No newline at end of file