Upload build_documentation.yml
Browse files
.github/build_documentation.yml
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Build documentation
|
2 |
+
|
3 |
+
on:
|
4 |
+
push:
|
5 |
+
branches:
|
6 |
+
- main
|
7 |
+
- doc-builder*
|
8 |
+
- v*-release
|
9 |
+
- use_templates
|
10 |
+
paths:
|
11 |
+
- 'docs/source/**'
|
12 |
+
- 'assets/**'
|
13 |
+
- '.github/workflows/doc-build.yml'
|
14 |
+
- 'pyproject.toml'
|
15 |
+
|
16 |
+
jobs:
|
17 |
+
build:
|
18 |
+
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@main
|
19 |
+
with:
|
20 |
+
commit_sha: ${{ github.sha }}
|
21 |
+
package: smolagents
|
22 |
+
languages: en
|
23 |
+
notebook_folder: smolagents_doc
|
24 |
+
# additional_args: --not_python_module # use this arg if repository is documentation only
|
25 |
+
secrets:
|
26 |
+
token: ${{ secrets.HUGGINGFACE_PUSH }}
|
27 |
+
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
|