Skip to content

Commit

Permalink
feat: add yml doc to update documentation repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ailinvenerus committed Dec 7, 2023
1 parent ad13288 commit 66a6739
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/update-doc.yml
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'

0 comments on commit 66a6739

Please sign in to comment.