mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
[doc build] Use secrets
This commit is contained in:
parent
2d0dbd17e3
commit
3ebbe172ec
4
.github/workflows/build_documentation.yml
vendored
4
.github/workflows/build_documentation.yml
vendored
@ -14,8 +14,8 @@ jobs:
|
|||||||
commit_sha: ${{ github.sha }}
|
commit_sha: ${{ github.sha }}
|
||||||
package: pytorch-image-models
|
package: pytorch-image-models
|
||||||
package_name: timm
|
package_name: timm
|
||||||
repo_owner: rwightman
|
|
||||||
path_to_docs: pytorch-image-models/hfdocs/source
|
path_to_docs: pytorch-image-models/hfdocs/source
|
||||||
version_tag_suffix: ""
|
version_tag_suffix: ""
|
||||||
secrets:
|
secrets:
|
||||||
token: ${{ secrets.HUGGINGFACE_PUSH }}
|
token: ${{ secrets.HUGGINGFACE_PUSH }}
|
||||||
|
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
|
1
.github/workflows/build_pr_documentation.yml
vendored
1
.github/workflows/build_pr_documentation.yml
vendored
@ -15,6 +15,5 @@ jobs:
|
|||||||
pr_number: ${{ github.event.number }}
|
pr_number: ${{ github.event.number }}
|
||||||
package: pytorch-image-models
|
package: pytorch-image-models
|
||||||
package_name: timm
|
package_name: timm
|
||||||
repo_owner: rwightman
|
|
||||||
path_to_docs: pytorch-image-models/hfdocs/source
|
path_to_docs: pytorch-image-models/hfdocs/source
|
||||||
version_tag_suffix: ""
|
version_tag_suffix: ""
|
||||||
|
14
.github/workflows/delete_doc_comment.yml
vendored
14
.github/workflows/delete_doc_comment.yml
vendored
@ -1,13 +1,13 @@
|
|||||||
name: Delete dev documentation
|
name: Delete doc comment
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
workflow_run:
|
||||||
types: [ closed ]
|
workflows: ["Delete doc comment trigger"]
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
delete:
|
delete:
|
||||||
uses: huggingface/doc-builder/.github/workflows/delete_doc_comment.yml@main
|
uses: huggingface/doc-builder/.github/workflows/delete_doc_comment.yml@main
|
||||||
with:
|
secrets:
|
||||||
pr_number: ${{ github.event.number }}
|
comment_bot_token: ${{ secrets.COMMENT_BOT_TOKEN }}
|
||||||
package: timm
|
|
12
.github/workflows/delete_doc_comment_trigger.yml
vendored
Normal file
12
.github/workflows/delete_doc_comment_trigger.yml
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
name: Delete doc comment trigger
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [ closed ]
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
delete:
|
||||||
|
uses: huggingface/doc-builder/.github/workflows/delete_doc_comment_trigger.yml@main
|
||||||
|
with:
|
||||||
|
pr_number: ${{ github.event.number }}
|
16
.github/workflows/upload_pr_documentation.yml
vendored
Normal file
16
.github/workflows/upload_pr_documentation.yml
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
name: Upload PR Documentation
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_run:
|
||||||
|
workflows: ["Build PR Documentation"]
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
uses: huggingface/doc-builder/.github/workflows/upload_pr_documentation.yml@main
|
||||||
|
with:
|
||||||
|
package_name: timm
|
||||||
|
secrets:
|
||||||
|
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
|
||||||
|
comment_bot_token: ${{ secrets.COMMENT_BOT_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user