diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a4c769fdf850..3f010a4c37b0 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -36,7 +36,7 @@ jobs: cd datasets python -m poetry install - name: Build docs - run: ./dev/build-docs.sh + run: ./dev/build-docs.sh ${{ github.ref == 'refs/heads/main' && github.repository == 'adap/flower' && !github.event.pull_request.head.repo.fork }} - name: Deploy docs if: ${{ github.ref == 'refs/heads/main' && github.repository == 'adap/flower' && !github.event.pull_request.head.repo.fork }} env: diff --git a/dev/build-docs.sh b/dev/build-docs.sh index 45a4dfca0adf..f8d4f91508de 100755 --- a/dev/build-docs.sh +++ b/dev/build-docs.sh @@ -17,4 +17,9 @@ cd $ROOT cd $ROOT cd doc -./build-versioned-docs.sh + +if [ "$1" = true ]; then + ./build-versioned-docs.sh +else + make html +fi