Merge pull request #380 from UiPath/fix/relative_url #78
This file contains hidden or 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
name: Publish Docs | |
on: | |
push: | |
branches: | |
- main | |
repository_dispatch: | |
types: [publish-docs] | |
jobs: | |
publish-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v5 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: ".python-version" | |
- name: Setup venv | |
run: | | |
uv venv | |
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 | |
- name: Symlink plugin docs | |
run: | | |
mkdir -p docs/plugins | |
ln -s ../../plugins/uipath-langchain-python docs/plugins/uipath-langchain-python | |
- name: Publish Docs | |
run: | | |
ls -la docs | |
uv run mkdocs gh-deploy --force |