From 7206fe31631265102f8b093e23bdfcac47c023bf Mon Sep 17 00:00:00 2001 From: Merve Noyan Date: Thu, 21 Sep 2023 12:23:52 +0200 Subject: [PATCH] changed actions since it runs on repo level, added cargo build --- .github/workflows/auto_docs.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/auto_docs.yml b/.github/workflows/auto_docs.yml index a2142073..f496f1de 100644 --- a/.github/workflows/auto_docs.yml +++ b/.github/workflows/auto_docs.yml @@ -3,7 +3,7 @@ name: Automatic Documentation for Launcher on: push: paths: - - "../../launcher/src/main.rs" + - "/launcher/src/main.rs" push: branches: - main @@ -16,6 +16,13 @@ jobs: - name: Checkout code uses: actions/checkout@v2 + - name: Install Launcher + id: install-launcher + run: | + cd launcher + cargo build + cd .. + - name: Run TGI Launcher docs id: run-launcher-help run: | @@ -25,7 +32,7 @@ jobs: - name: Update Docs run: | output="${{ steps.run-launcher-help.outputs.output }}" - rm ../../docs/source/basic_tutorials/launcher.md - echo '```' >> ../../docs/source/basic_tutorials/launcher.md - echo $output >> ../../docs/source/basic_tutorials/launcher.md - echo '```' >> ../../docs/source/basic_tutorials/launcher.md \ No newline at end of file + rm /docs/source/basic_tutorials/launcher.md + echo '```' >> /docs/source/basic_tutorials/launcher.md + echo $output >> /docs/source/basic_tutorials/launcher.md + echo '```' >> /docs/source/basic_tutorials/launcher.md \ No newline at end of file