mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-10 20:04:52 +00:00
changed actions since it runs on repo level, added cargo build
This commit is contained in:
parent
2bddc78dca
commit
7206fe3163
17
.github/workflows/auto_docs.yml
vendored
17
.github/workflows/auto_docs.yml
vendored
@ -3,7 +3,7 @@ name: Automatic Documentation for Launcher
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- "../../launcher/src/main.rs"
|
- "/launcher/src/main.rs"
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
@ -16,6 +16,13 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install Launcher
|
||||||
|
id: install-launcher
|
||||||
|
run: |
|
||||||
|
cd launcher
|
||||||
|
cargo build
|
||||||
|
cd ..
|
||||||
|
|
||||||
- name: Run TGI Launcher docs
|
- name: Run TGI Launcher docs
|
||||||
id: run-launcher-help
|
id: run-launcher-help
|
||||||
run: |
|
run: |
|
||||||
@ -25,7 +32,7 @@ jobs:
|
|||||||
- name: Update Docs
|
- name: Update Docs
|
||||||
run: |
|
run: |
|
||||||
output="${{ steps.run-launcher-help.outputs.output }}"
|
output="${{ steps.run-launcher-help.outputs.output }}"
|
||||||
rm ../../docs/source/basic_tutorials/launcher.md
|
rm /docs/source/basic_tutorials/launcher.md
|
||||||
echo '```' >> ../../docs/source/basic_tutorials/launcher.md
|
echo '```' >> /docs/source/basic_tutorials/launcher.md
|
||||||
echo $output >> ../../docs/source/basic_tutorials/launcher.md
|
echo $output >> /docs/source/basic_tutorials/launcher.md
|
||||||
echo '```' >> ../../docs/source/basic_tutorials/launcher.md
|
echo '```' >> /docs/source/basic_tutorials/launcher.md
|
Loading…
Reference in New Issue
Block a user