-
Notifications
You must be signed in to change notification settings - Fork 23
57 lines (48 loc) · 1.74 KB
/
publish-docs.yml
File metadata and controls
57 lines (48 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Publish Docs
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "docs/**"
- "mkdocs.yml"
- "pyproject.toml"
repository_dispatch:
types: [publish-docs]
jobs:
publish-docs:
runs-on: ubuntu-latest
if: ${{ github.repository == 'UiPath/uipath-python' }}
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- name: Install dependencies
run: uv sync --all-extras
- name: Clone plugins
run: |
git clone https://x-access-token:${{ secrets.REPO_ACCESS }}@github.com/UiPath/uipath-langchain-python plugins/uipath-langchain-python
git clone https://x-access-token:${{ secrets.REPO_ACCESS }}@github.com/UiPath/uipath-integrations-python plugins/uipath-integrations-python
git clone https://x-access-token:${{ secrets.REPO_ACCESS }}@github.com/UiPath/uipath-mcp-python plugins/uipath-mcp-python
- name: Symlink plugin docs
run: |
ln -s ../plugins/uipath-langchain-python/docs docs/langchain
ln -s ../plugins/uipath-integrations-python/packages/uipath-llamaindex/docs docs/llamaindex
ln -s ../plugins/uipath-integrations-python/packages/uipath-openai-agents/docs docs/openai-agents
ln -s ../plugins/uipath-mcp-python/docs docs/mcp
ls -a docs/langchain
ls -a docs/llamaindex
ls -a docs/openai-agents
ls -a docs/mcp
- name: Publish Docs
run: uv run mkdocs gh-deploy --force