From 5a5ddc1ec6b8fd9e181a78d82eb3bf425fdaccb8 Mon Sep 17 00:00:00 2001 From: Saket Kulkarni Date: Mon, 3 Jun 2024 19:29:47 -0400 Subject: [PATCH] Update documentation.yml --- .github/workflows/documentation.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 63e2369..66d4a08 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -1,13 +1,10 @@ name: Perceptions Library 22a on: - # Triggers the workflow on push or pull request events but only for the main branch push: branches: [DocumentationBranch] pull_request: branches: [DocumentationBranch] - - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: permissions: @@ -18,19 +15,22 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + - name: Install dependencies run: | pip install sphinx sphinx_rtd_theme myst_parser + - name: Sphinx build run: | - cd documentation/html && - sphinx-build source _build + cd PerceptionsLibrary22a/documentation + sphinx-build -b html source build/html + - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} with: - publish_branch: gh-pages github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: _build/ + publish_branch: gh-pages + publish_dir: PerceptionsLibrary22a/documentation/build/html force_orphan: true