-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 920 Bytes
/
mkdocs-deploy.yml
File metadata and controls
31 lines (30 loc) · 920 Bytes
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
name: mkdocs-deploy
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email 'actions@github.com'
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Poetry
run: pip install poetry
- name: Clone python-sdk
run: git clone --depth 1 https://github.com/codellm-devkit/python-sdk.git ../python-sdk
- name: Install Dependencies
run: poetry install --no-root
- name: Install python-sdk into Poetry venv
run: poetry run pip install -e ../python-sdk
- name: Deploy docs
run: poetry run mkdocs gh-deploy --force --verbose