diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index b5cf1d1..9d9105f 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -1,17 +1,23 @@ name: Deploy documentation +# FIXME on: - workflow_run: - workflows: ["Build and test"] + push: branches: - - master - ci - types: [completed] + +#on: +# workflow_run: +# workflows: ["Build and test"] +# branches: +# - master +# - ci +# types: [completed] jobs: build-and-deploy: runs-on: ubuntu-20.04 - if: ${{ github.event.workflow_run.conclusion == 'success' }} + #if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - uses: actions/checkout@v3 @@ -34,13 +40,15 @@ jobs: - name: Install Python dependencies run: | python -m pip install --upgrade pip + pip install setuptools pip install pybind11 numpy tox sphinx sphinx-rtd-theme myst-parser - name: Build documentation run: | export LIBCOMMUTE_DIR=${GITHUB_WORKSPACE}/libcommute.installed export LIBCOMMUTE_INCLUDEDIR=${LIBCOMMUTE_DIR}/include - sphinx-build -M html docs/ build/sphinx/html + pip install . + sphinx-build -M html docs/ build/sphinx - name: Deploy documentation uses: JamesIves/github-pages-deploy-action@v4