Skip to content

Commit 0018bb4

Browse files
authored
[doc build] Use secrets (#581)
1 parent 9c44804 commit 0018bb4

File tree

5 files changed

+37
-8
lines changed

5 files changed

+37
-8
lines changed

.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: ar bn de en es fa fr gj he hi id it ja ko pt ru th tr vi zh-CN zh-TW
1818
secrets:
1919
token: ${{ secrets.HUGGINGFACE_PUSH }}
20+
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}

.github/workflows/build_pr_documentation.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@ jobs:
1717
path_to_docs: course/chapters/
1818
additional_args: --not_python_module
1919
languages: ar bn de en es fa fr gj he hi id it ja ko pt ru th tr vi zh-CN zh-TW
20-
hub_base_path: https://moon-ci-docs.huggingface.co
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: Delete dev documentation
1+
name: Delete doc comment
22

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

89
jobs:
910
delete:
1011
uses: huggingface/doc-builder/.github/workflows/delete_doc_comment.yml@main
11-
with:
12-
pr_number: ${{ github.event.number }}
13-
package: course
12+
secrets:
13+
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: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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: course
14+
hub_base_path: https://moon-ci-docs.huggingface.co
15+
secrets:
16+
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
17+
comment_bot_token: ${{ secrets.COMMENT_BOT_TOKEN }}

0 commit comments

Comments
 (0)