diff --git a/.github/workflows/api-docs.yaml b/.github/workflows/api-docs.yaml index 3fb0ad74..ccacde0c 100644 --- a/.github/workflows/api-docs.yaml +++ b/.github/workflows/api-docs.yaml @@ -31,12 +31,12 @@ jobs: run: | python -m pip install --upgrade pip pip install -r docs/_pydoc/requirements.txt + pip install --upgrade setuptools # Fix to prevent: ModuleNotFoundError: No module named 'pkg_resources' + - name: Generate API docs run: ./.github/utils/pydoc-markdown.sh - - name: Install dependencies for doc deployment - run: pip install mkdocs-material mkdocstrings[python] mkdocs-mermaid2-plugin mike - name: Configure git to push docs run: | @@ -44,9 +44,11 @@ jobs: git config --global user.email docs@bot.com git config pull.rebase false git pull --allow-unrelated-histories origin gh-pages - + + - name: Install dependencies for doc deployment + run: pip install mkdocs-material mkdocstrings[python] mkdocs-mermaid2-plugin mike + - name: Publish docs run: | - VERSION=$(sed -n 's/__version__ = "\(.*\)"/\1/p' ./deepset_cloud_sdk/__about__.py) && \ - mike deploy --push --update-aliases ${VERSION} && \ - mike set-default --push ${VERSION} + mike deploy --push --update-aliases ${{github.ref_name}} && \ + mike set-default --push ${{github.ref_name}} diff --git a/deepset_cloud_sdk/__about__.py b/deepset_cloud_sdk/__about__.py index 6801643e..f7fc0f25 100644 --- a/deepset_cloud_sdk/__about__.py +++ b/deepset_cloud_sdk/__about__.py @@ -1,4 +1,4 @@ """This file defines the package version.""" # Will be automatically overridden during the release process # It's okay if this is outdated in the repo. We will use the tag from the release as the version. -__version__ = "0.0.34" +__version__ = "0.0.35"