From 3c67d9b3e57dc6462d611eb903b73a07a31eed23 Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Wed, 14 Aug 2024 04:27:31 -0700 Subject: [PATCH] revert #30 (#31) --- .github/workflows/sphinx.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index b5b57ee..acccfea 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -8,11 +8,6 @@ on: type: string default: docs/_build/html description: The docs path name - project-root: - required: false - type: string - default: '.' - description: The root directory of conrtaining the docs folder jobs: sphinx-deploy: @@ -24,18 +19,16 @@ jobs: python-version: 3.x - name: Install dependencies - working-directory: ${{ inputs.project-root }} run: pip install -r docs/requirements.txt -e . - name: Build docs - working-directory: ${{ inputs.project-root }} run: sphinx-build docs ${{ inputs.path-to-doc }} - name: Upload docs build as artifact uses: actions/upload-artifact@v4 with: - name: ${{ inputs.project-root == '.' && github.event.repository.name || inputs.project-root }}_docs - path: ${{ github.workspace }}/${{ inputs.project-root }}/${{ inputs.path-to-doc }} + name: ${{ github.event.repository.name }}_docs + path: ${{ github.workspace }}/${{ inputs.path-to-doc }} - name: Upload to github pages # only publish doc changes from main branch @@ -43,4 +36,4 @@ jobs: uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./${{ inputs.project-root }}/${{ inputs.path-to-doc }} + publish_dir: ./${{ inputs.path-to-doc }}