Skip to content

Commit

Permalink
revert #30 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 authored Aug 14, 2024
1 parent e3d904b commit 3c67d9b
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -24,23 +19,21 @@ 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
if: github.ref == 'refs/heads/main'
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 }}

0 comments on commit 3c67d9b

Please sign in to comment.