diff --git a/.github/workflows/create_test_conda_env.yml b/.github/workflows/create_test_conda_env.yml index 51c77e30..514fc335 100644 --- a/.github/workflows/create_test_conda_env.yml +++ b/.github/workflows/create_test_conda_env.yml @@ -51,17 +51,15 @@ jobs: # run pylint pylint fre/ || echo "pylint returned non-zero exit code. preventing workflow from dying with this echo." - - name: Install dependencies + - name: Install Sphinx and Build Documentation run: | pip install sphinx renku-sphinx-theme sphinx-rtd-theme pip install --upgrade sphinx-rtd-theme - - - name: Sphinx build - run: | sphinx-build docs build - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 + if: ${{ github.ref == 'refs/heads/add_badges' }} with: publish_branch: gh-pages github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml deleted file mode 100644 index b2cfce1d..00000000 --- a/.github/workflows/documentation.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: documentation - -on: [push] - -permissions: - contents: write - -jobs: - docs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 - - name: Install dependencies - run: | - pip install sphinx renku-sphinx-theme sphinx-rtd-theme - pip install --upgrade sphinx-rtd-theme - - name: Sphinx build - run: | - sphinx-build docs build - - 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/ - force_orphan: true