Skip to content

Commit 331d83c

Browse files
fix
1 parent 6bbde99 commit 331d83c

File tree

2 files changed

+26
-13
lines changed

2 files changed

+26
-13
lines changed
Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
name: Build documentation
1+
name: Upload PR Documentation
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
- doc-builder*
8-
- v*-patch
4+
workflow_run:
5+
workflows: ["Build PR Documentation"]
6+
types:
7+
- completed
98

109
jobs:
11-
build:
12-
uses: huggingface/doc-builder/.github/workflows/build_main_documentation.yml@main
10+
build:
11+
uses: huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml@main
1312
with:
14-
commit_sha: ${{ github.sha }}
15-
package: diffusers
16-
notebook_folder: diffusers_doc
17-
languages: en ko
13+
package_name: diffusers
1814
secrets:
19-
token: ${{ secrets.HUGGINGFACE_PUSH }}
15+
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
16+
comment_bot_token: ${{ secrets.COMMENT_BOT_TOKEN }}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Upload PR Documentation
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Build PR Documentation"]
6+
types:
7+
- completed
8+
9+
jobs:
10+
build:
11+
uses: huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml@main
12+
with:
13+
package_name: diffusers
14+
secrets:
15+
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
16+
comment_bot_token: ${{ secrets.COMMENT_BOT_TOKEN }}

0 commit comments

Comments
 (0)