diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index a1d8ddfc625ed12e514bbd14103458ed9d789ae3..9fd26d7ae173747e24703b4940fd5daeccf4aca1 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -33,8 +33,7 @@ jobs:
       - name: Install dependencies
         run: |
           poetry install
-          cd docs
-          pip install -r source/requirements.txt
+          pip install -r docs/source/requirements.txt
       - name: Build docs
         run: |
-          sphinx-build -M html source build
\ No newline at end of file
+          sphinx-build -M html docs/source docs/build
\ No newline at end of file