burtenshaw commited on
Commit
cc80d68
·
1 Parent(s): 46de7dc

update CI config

Browse files
.github/workflows/build_pr_documentation.yml CHANGED
@@ -14,6 +14,7 @@ jobs:
14
  commit_sha: ${{ github.event.pull_request.head.sha }}
15
  pr_number: ${{ github.event.number }}
16
  package: mcp-course
17
- path_to_docs: units
 
18
  additional_args: --not_python_module
19
  languages: en
 
14
  commit_sha: ${{ github.event.pull_request.head.sha }}
15
  pr_number: ${{ github.event.number }}
16
  package: mcp-course
17
+ package_name: mcp-course
18
+ path_to_docs: mcp-course/units/
19
  additional_args: --not_python_module
20
  languages: en
.github/workflows/upload_pr_documentation.yml ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Upload PR Documentation
2
+
3
+ on:
4
+ workflow_run:
5
+ workflows: ["Build PR Documentation"]
6
+ types:
7
+ - completed
8
+
9
+ permissions:
10
+ actions: write
11
+ contents: write
12
+ deployments: write
13
+ pull-requests: write
14
+
15
+
16
+ jobs:
17
+ build:
18
+ uses: huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml@main
19
+ with:
20
+ package_name: mcp-course
21
+ hub_base_path: https://moon-ci-docs.huggingface.co/learn
22
+ secrets:
23
+ hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
24
+ comment_bot_token: ${{ secrets.COMMENT_BOT_TOKEN }}