From 0a5a10369a93b573005d512bd46309030b4b253e Mon Sep 17 00:00:00 2001 From: Sebastien Morais Date: Fri, 22 Dec 2023 19:18:57 +0100 Subject: [PATCH] CI: deactivate doc index jobs --- .github/workflows/ci_cd.yml | 84 ++++++++++++++++++------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 17981f228b..1b143d5485 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -218,20 +218,20 @@ jobs: cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.GITHUB_TOKEN }} - doc-index-dev: - name: "Deploy dev index docs" - if: github.ref == 'refs/heads/main' - runs-on: ubuntu-latest - needs: upload-dev-docs - steps: - - name: "Deploy the latest documentation index" - uses: ansys/actions/doc-deploy-index@v5 - with: - cname: ${{ env.DOCUMENTATION_CNAME }}/version/dev - index-name: pyedb-vdev - host-url: ${{ env.MEILISEARCH_HOST_URL }} - api-key: ${{ env.MEILISEARCH_API_KEY }} - python-version: ${{ env.MAIN_PYTHON_VERSION }} + # doc-index-dev: + # name: "Deploy dev index docs" + # if: github.ref == 'refs/heads/main' + # runs-on: ubuntu-latest + # needs: upload-dev-docs + # steps: + # - name: "Deploy the latest documentation index" + # uses: ansys/actions/doc-deploy-index@v5 + # with: + # cname: ${{ env.DOCUMENTATION_CNAME }}/version/dev + # index-name: pyedb-vdev + # host-url: ${{ env.MEILISEARCH_HOST_URL }} + # api-key: ${{ env.MEILISEARCH_API_KEY }} + # python-version: ${{ env.MAIN_PYTHON_VERSION }} upload-docs-release: name: Upload release documentation @@ -245,32 +245,32 @@ jobs: cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.GITHUB_TOKEN }} - doc-index-stable: - name: "Deploy stable docs index" - runs-on: ubuntu-latest - needs: upload-docs-release - steps: - - name: "Install Git and clone project" - uses: actions/checkout@v4 - - - name: "Install the package requirements" - run: pip install -e . - - - name: "Get the version to PyMeilisearch" - run: | - VERSION=$(python -c "from pyedb import __version__; print('.'.join(__version__.split('.')[:2]))") - VERSION_MEILI=$(python -c "from pyedb 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@v5 - with: - cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }} - index-name: pyedb-v${{ env.VERSION_MEILI }} - host-url: ${{ env.MEILISEARCH_HOST_URL }} - api-key: ${{ env.MEILISEARCH_API_KEY }} - python-version: ${{ env.MAIN_PYTHON_VERSION }} + # doc-index-stable: + # name: "Deploy stable docs index" + # runs-on: ubuntu-latest + # needs: upload-docs-release + # steps: + # - name: "Install Git and clone project" + # uses: actions/checkout@v4 + + # - name: "Install the package requirements" + # run: pip install -e . + + # - name: "Get the version to PyMeilisearch" + # run: | + # VERSION=$(python -c "from pyedb import __version__; print('.'.join(__version__.split('.')[:2]))") + # VERSION_MEILI=$(python -c "from pyedb 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@v5 + # with: + # cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }} + # index-name: pyedb-v${{ env.VERSION_MEILI }} + # host-url: ${{ env.MEILISEARCH_HOST_URL }} + # api-key: ${{ env.MEILISEARCH_API_KEY }} + # python-version: ${{ env.MAIN_PYTHON_VERSION }}