Skip to content

Commit b84acb7

Browse files
fix: update the search indexing workflow and dependency (#2388)
fix: the search indexing Co-authored-by: German <[email protected]>
1 parent a6eabd8 commit b84acb7

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -707,20 +707,18 @@ jobs:
707707
- name: "Install Git and clone project"
708708
uses: actions/checkout@v4
709709

710-
- name: "Get version of library"
711-
shell: bash
712-
run: |
713-
echo "FULL_VERSION=$(cat VERSION)" >> $GITHUB_ENV
714-
715-
- name: "Scrape the stable documentation to PyMeilisearch"
710+
- name: "Install the package requirements"
711+
run: pip install -e .
716712

713+
- name: "Get the version to PyMeilisearch"
717714
run: |
718-
VERSION=$(python -c "import os; version=os.environ['FULL_VERSION']; print('.'.join(version.split('.')[:2]))")
719-
VERSION_MEILI=$(python -c "import os; version=os.environ['FULL_VERSION']; print('-'.join(version.split('.')[:2]))")
715+
VERSION=$(python -c "from ansys.mapdl.core import __version__; print('.'.join(__version__.split('.')[:2]))")
716+
VERSION_MEILI=$(python -c "from ansys.mapdl.core import __version__; print('-'.join(__version__.split('.')[:2]))")
720717
echo "Calculated VERSION: $VERSION"
721718
echo "Calculated VERSION_MEILI: $VERSION_MEILI"
722719
echo "VERSION=$VERSION" >> $GITHUB_ENV
723720
echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV
721+
724722
- name: "Deploy the latest documentation index"
725723
uses: ansys/actions/doc-deploy-index@v4
726724
with:
@@ -750,7 +748,7 @@ jobs:
750748
uses: ansys/actions/doc-deploy-index@v4
751749
with:
752750
cname: ${{ env.DOCUMENTATION_CNAME }}/version/dev
753-
index-name: "pymapdl-vdev"
751+
index-name: pymapdl-vdev
754752
host-url: ${{ vars.MEILISEARCH_HOST_URL }}
755753
api-key: ${{ env.MEILISEARCH_API_KEY }}
756754

0 commit comments

Comments
 (0)