Args: Add subcommands to run actions
Migrate OpenAPI and sample config export to subcommands "export-openapi" and "export-config". Also add a "download" subcommand that passes args to the TabbyAPI downloader. This allows models to be downloaded via the API and CLI args. Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com>
This commit is contained in:
parent
30f02e5453
commit
30ab8e04b9
6 changed files with 112 additions and 31 deletions
4
.github/workflows/pages.yml
vendored
4
.github/workflows/pages.yml
vendored
|
|
@ -48,8 +48,8 @@ jobs:
|
|||
npm install @redocly/cli -g
|
||||
- name: Export OpenAPI docs
|
||||
run: |
|
||||
python main.py --export-openapi true --openapi-export-path "openapi-kobold.json" --api-servers kobold
|
||||
python main.py --export-openapi true --openapi-export-path "openapi-oai.json" --api-servers OAI
|
||||
python main.py export-openapi --export-path "openapi-kobold.json"
|
||||
python main.py export-openapi --export-path "openapi-oai.json"
|
||||
- name: Build and store Redocly site
|
||||
run: |
|
||||
mkdir static
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue