diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 3ba2907b..31a4d3dd 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -6,7 +6,6 @@ on: push: branches: - main - - dev permissions: contents: write jobs: @@ -36,8 +35,15 @@ jobs: - name: get version run: | echo "INFINITY_VERSION=$(python -c 'import infinity_emb; print(infinity_emb.__version__)')" >> $GITHUB_ENV - - name: Build and Deploy + - name: Build and Deploy Release + # only if the release is published + if: github.event_name == 'release' && github.event.action == 'published' run: | cd docs - # python -m mkdocs gh-deploy --force -m "updating to version $INFINITY_VERSION" - mike deploy --push --update-aliases latest $INFINITY_VERSION \ No newline at end of file + mike deploy --push --update-aliases latest $INFINITY_VERSION + - name: Build and Deploy Dev/main + # only if dev/main branch is pushed + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + run: | + cd docs + mike deploy --push --update-aliases main \ No newline at end of file diff --git a/libs/infinity_emb/pyproject.toml b/libs/infinity_emb/pyproject.toml index ce5e6b67..669d5ac1 100644 --- a/libs/infinity_emb/pyproject.toml +++ b/libs/infinity_emb/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "infinity_emb" -version = "0.0.27" +version = "0.0.28" description = "Infinity is a high-throughput, low-latency REST API for serving vector embeddings, supporting a wide range of sentence-transformer models and frameworks." authors = ["michaelfeil "] license = "MIT"