diff --git a/.github/workflows/autodocs.yml b/.github/workflows/autodocs.yaml similarity index 100% rename from .github/workflows/autodocs.yml rename to .github/workflows/autodocs.yaml diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yaml similarity index 100% rename from .github/workflows/build_documentation.yml rename to .github/workflows/build_documentation.yaml diff --git a/.github/workflows/build_pr_documentation.yaml b/.github/workflows/build_pr_documentation.yaml new file mode 100644 index 00000000..bf03bfdf --- /dev/null +++ b/.github/workflows/build_pr_documentation.yaml @@ -0,0 +1,19 @@ +name: Build PR Documentation + +on: + pull_request: + paths: + - "docs/source/**" + +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.yaml@main + with: + commit_sha: ${{ github.event.pull_request.head.sha }} + pr_number: ${{ github.event.number }} + package: text-generation-inference + additional_args: --not_python_module diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yaml similarity index 86% rename from .github/workflows/ci_build.yml rename to .github/workflows/ci_build.yaml index a8183927..8e31d4fb 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yaml @@ -30,13 +30,13 @@ jobs: fail-fast: true matrix: hardware: ["cuda", "rocm", "intel"] - uses: ./.github/workflows/build.yml # calls the one above ^ + uses: ./.github/workflows/build.yaml # calls the one above ^ with: hardware: ${{ matrix.hardware }} secrets: inherit integration_tests: needs: build-matrix - uses: ./.github/workflows/integration_tests.yml # calls the one above ^ + uses: ./.github/workflows/integration_tests.yaml # calls the one above ^ with: docker_image: ${{ steps.build.outputs.docker_image }} docker_devices: ${{ steps.build.outputs.docker_devices }} diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yaml similarity index 100% rename from .github/workflows/integration_tests.yml rename to .github/workflows/integration_tests.yaml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yaml similarity index 100% rename from .github/workflows/stale.yml rename to .github/workflows/stale.yaml diff --git a/.github/workflows/upload_pr_documentation.yml b/.github/workflows/upload_pr_documentation.yaml similarity index 100% rename from .github/workflows/upload_pr_documentation.yml rename to .github/workflows/upload_pr_documentation.yaml