From b84acb7208b63316d3d15c6770238057e4a0af6a Mon Sep 17 00:00:00 2001 From: Revathy Venugopal <104772255+Revathyvenugopal162@users.noreply.github.com> Date: Fri, 6 Oct 2023 13:05:40 -0400 Subject: [PATCH] fix: update the search indexing workflow and dependency (#2388) fix: the search indexing Co-authored-by: German <28149841+germa89@users.noreply.github.com> --- .github/workflows/ci.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b531442f2..0d8bb7a31d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -707,20 +707,18 @@ jobs: - name: "Install Git and clone project" uses: actions/checkout@v4 - - name: "Get version of library" - shell: bash - run: | - echo "FULL_VERSION=$(cat VERSION)" >> $GITHUB_ENV - - - name: "Scrape the stable documentation to PyMeilisearch" + - name: "Install the package requirements" + run: pip install -e . + - name: "Get the version to PyMeilisearch" run: | - VERSION=$(python -c "import os; version=os.environ['FULL_VERSION']; print('.'.join(version.split('.')[:2]))") - VERSION_MEILI=$(python -c "import os; version=os.environ['FULL_VERSION']; print('-'.join(version.split('.')[:2]))") + VERSION=$(python -c "from ansys.mapdl.core import __version__; print('.'.join(__version__.split('.')[:2]))") + VERSION_MEILI=$(python -c "from ansys.mapdl.core import __version__; print('-'.join(__version__.split('.')[:2]))") echo "Calculated VERSION: $VERSION" echo "Calculated VERSION_MEILI: $VERSION_MEILI" echo "VERSION=$VERSION" >> $GITHUB_ENV echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV + - name: "Deploy the latest documentation index" uses: ansys/actions/doc-deploy-index@v4 with: @@ -750,7 +748,7 @@ jobs: uses: ansys/actions/doc-deploy-index@v4 with: cname: ${{ env.DOCUMENTATION_CNAME }}/version/dev - index-name: "pymapdl-vdev" + index-name: pymapdl-vdev host-url: ${{ vars.MEILISEARCH_HOST_URL }} api-key: ${{ env.MEILISEARCH_API_KEY }}