Skip to content

Commit 8caa530

Browse files
Mishigpatrickvonplaten
andauthored
[doc build] Use secrets (huggingface#3707)
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
1 parent cd61869 commit 8caa530

4 files changed

Lines changed: 36 additions & 6 deletions

File tree

.github/workflows/build_documentation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ jobs:
1717
languages: en ko
1818
secrets:
1919
token: ${{ secrets.HUGGINGFACE_PUSH }}
20+
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
name: Delete dev documentation
1+
name: Delete doc comment
22

33
on:
4-
pull_request:
5-
types: [ closed ]
4+
workflow_run:
5+
workflows: ["Delete doc comment trigger"]
6+
types:
7+
- completed
68

79

810
jobs:
911
delete:
1012
uses: huggingface/doc-builder/.github/workflows/delete_doc_comment.yml@main
11-
with:
12-
pr_number: ${{ github.event.number }}
13-
package: diffusers
13+
secrets:
14+
comment_bot_token: ${{ secrets.COMMENT_BOT_TOKEN }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Delete doc comment trigger
2+
3+
on:
4+
pull_request:
5+
types: [ closed ]
6+
7+
8+
jobs:
9+
delete:
10+
uses: huggingface/doc-builder/.github/workflows/delete_doc_comment_trigger.yml@main
11+
with:
12+
pr_number: ${{ github.event.number }}
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)