Skip to content

Commit

Permalink
Merge pull request #440 from tomaarsen/docs/workflows
Browse files Browse the repository at this point in the history
Update documentation building workflows
  • Loading branch information
tomaarsen authored Nov 21, 2023
2 parents a893809 + 697837e commit 49cc545
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ jobs:
commit_sha: ${{ github.sha }}
package: setfit
languages: en
secrets:
token: ${{ secrets.HUGGINGFACE_PUSH }}
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Delete dev documentation
name: Delete doc comment trigger

on:
pull_request:
Expand All @@ -7,7 +7,6 @@ on:

jobs:
delete:
uses: huggingface/doc-builder/.github/workflows/delete_doc_comment.yml@main
uses: huggingface/doc-builder/.github/workflows/delete_doc_comment_trigger.yml@main
with:
pr_number: ${{ github.event.number }}
package: setfit
pr_number: ${{ github.event.number }}
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: setfit
secrets:
hf_token: ${{ secrets.HF_DOC_BUILD_PUSH }}
comment_bot_token: ${{ secrets.COMMENT_BOT_TOKEN }}

0 comments on commit 49cc545

Please sign in to comment.