-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add yml doc to update documentation repo
- Loading branch information
1 parent
ad13288
commit 66a6739
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Update docs | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
create-files: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install deps | ||
run: pip install -r requirements.txt | ||
- name: Create md files | ||
run: sphinx-build -M markdown ./docs_source ./docs | ||
- name: Update docs website | ||
uses: car-on-sale/[email protected] | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.WEBSITE_GITHUB_TOKEN }} | ||
GH_TOKEN: ${{ secrets.WEBSITE_GITHUB_TOKEN }} | ||
with: | ||
source_folder: 'docs/markdown' | ||
destination_repo: 'ScribeLabsAI/documentation' | ||
destination_folder: 'docs/SDK/mi-python' | ||
destination_base_branch: 'master' | ||
destination_head_branch: 'mi-python-update' | ||
commit_msg: 'docs(miPython): Update MI Python doc' | ||
pr_title: 'Update MI Python doc' | ||
pull_request_reviewers: 'EHadoux' | ||
user_email: '[email protected]' | ||
user_name: 'ailinvenerus' |