Skip to content

Commit

Permalink
Update sphinx.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ghadialhajj committed Dec 7, 2023
1 parent 94df9e5 commit b965116
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- main
# paths:
# - 'docs/**' # Trigger only if changes are made in the 'docs' folder

jobs:
build:
Expand All @@ -27,26 +25,28 @@ jobs:
pip install sphinx_rtd_theme
pip install sphinx_tabs
- name: Build and Publish Documentation
- name: Build Documentation
run: |
cd docs
make html
ls -la build/html # Add this line to list the files in the build directory
deploy:
runs-on: ubuntu-latest

needs: build # This ensures the 'deploy' job runs only if the 'build' job succeeds.
needs: build

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: List Files in Publish Directory
run: |
ls -la docs/build/html # Add this line to list the files in the publish directory
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/html # Adjust this based on your Sphinx output directory
publish_dir: docs/build/html
publish_branch: gh-pages

0 comments on commit b965116

Please sign in to comment.