Skip to content

Commit

Permalink
Add workflow files to deploy /api_inference (#1415)
Browse files Browse the repository at this point in the history
* Add workflow files to deploy /api_inference

* trigger

* forgot to commit this one
  • Loading branch information
Wauplin authored Sep 16, 2024
1 parent b2a2863 commit 9953a78
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/api_inference_build_documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build Inference API documentation

on:
push:
paths:
- "docs/api-inference/**"
branches:
- main

jobs:
build:
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@main
with:
commit_sha: ${{ github.sha }}
package: hub-docs
package_name: api-inference
path_to_docs: hub-docs/docs/api-inference/
additional_args: --not_python_module
secrets:
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
21 changes: 21 additions & 0 deletions .github/workflows/api_inference_build_pr_documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build Inference API PR Documentation

on:
pull_request:
paths:
- "docs/api-inference/**"

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: hub-docs
package_name: api-inference
path_to_docs: hub-docs/docs/api-inference/
additional_args: --not_python_module
16 changes: 16 additions & 0 deletions .github/workflows/api_inference_upload_pr_documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Upload Inference API PR Documentation

on:
workflow_run:
workflows: ["Build Inference API PR Documentation"]
types:
- completed

jobs:
build:
uses: huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml@main
with:
package_name: api-inference
secrets:
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
comment_bot_token: ${{ secrets.COMMENT_BOT_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/sagemaker_upload_pr_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Upload sagemaker PR Documentation

on:
workflow_run:
workflows: ["Build sagemaker PR DocumentationDocumentation"]
workflows: ["Build sagemaker PR Documentation"]
types:
- completed

Expand Down
2 changes: 1 addition & 1 deletion docs/api-inference/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Serverless Inference API use TLS/SSL to encrypt the data in transit.

The Hugging Face Hub, which Serverless Inference API is part, is SOC2 Type 2 certified. For more on Hub security: https://huggingface.co/docs/hub/security

<img width="150" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/security-soc-1.jpg">
<img width="150" src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/security-soc-1.jpg">

0 comments on commit 9953a78

Please sign in to comment.