Skip to content

Commit

Permalink
[doc build] Use secrets (#208)
Browse files Browse the repository at this point in the history
Co-authored-by: coyotte508 <coyotte508@gmail.com>
  • Loading branch information
Mishig and coyotte508 authored Jun 7, 2023
1 parent c6a1676 commit 50bf9df
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/delete-doc-comment.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ jobs:
path_to_docs: huggingface.js/docs
additional_args: --not_python_module
pre_command: corepack enable && cd huggingface.js && pnpm install && pnpm --filter doc-internal start
secrets:
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
16 changes: 16 additions & 0 deletions .github/workflows/upload-pr-documentation.yml
Original file line number Diff line number Diff line change
@@ -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: huggingface.js
secrets:
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
comment_bot_token: ${{ secrets.COMMENT_BOT_TOKEN }}

0 comments on commit 50bf9df

Please sign in to comment.