From fe3fdad2a6cf03b052b071ebe1eba02f0e86d4b6 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Fri, 22 Sep 2023 08:47:46 +0200 Subject: [PATCH 1/3] test indexing --- .github/workflows/ci-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 8aaff124..77283110 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -147,10 +147,10 @@ jobs: - name: "Deploy the dev documentation index" uses: ansys/actions/doc-deploy-index@v4 - if: github.ref == 'refs/heads/main' + #if: github.ref == 'refs/heads/main' with: cname: ${{ env.DOCUMENTATION_CNAME }}/version/dev - index-name: "pyansys-vdev" + index-name: pyansys-vdev host-url: ${{ vars.MEILISEARCH_HOST_URL }} api-key: ${{ env.MEILISEARCH_API_KEY }} From 17fcecb86edfae057892376213c98f2d5165f570 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Mon, 25 Sep 2023 10:36:35 +0200 Subject: [PATCH 2/3] fix: check with different workflow --- .github/workflows/ci-build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 77283110..9cfb1c8a 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -145,9 +145,15 @@ jobs: cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.GITHUB_TOKEN }} + + doc-index-dev: + name: "Deploy dev docs index" + #if: github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + needs: docs-build + steps: - name: "Deploy the dev documentation index" uses: ansys/actions/doc-deploy-index@v4 - #if: github.ref == 'refs/heads/main' with: cname: ${{ env.DOCUMENTATION_CNAME }}/version/dev index-name: pyansys-vdev From 97dc18f5a4972612c6d0038712a90fac0b595232 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Mon, 25 Sep 2023 11:19:57 +0200 Subject: [PATCH 3/3] fix: split the workflow --- .github/workflows/ci-build.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 9cfb1c8a..115e9e86 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -138,19 +138,23 @@ jobs: python-version: ${{ env.MAIN_PYTHON_VERSION }} dependencies: "build-essential zip pandoc texlive-latex-extra latexmk texlive-pstricks" - - name: Deploy the dev documentation - uses: ansys/actions/doc-deploy-dev@v4 - if: github.ref == 'refs/heads/main' - with: - cname: ${{ env.DOCUMENTATION_CNAME }} - token: ${{ secrets.GITHUB_TOKEN }} - + doc-deploy-dev: + name: "Deploy development docs" + if: github.ref == 'refs/heads/main' + runs-on: ubuntu-latest + needs: [package] + steps: + - name: Deploy the latest documentation + uses: ansys/actions/doc-deploy-dev@v4 + with: + cname: ${{ env.DOCUMENTATION_CNAME }} + token: ${{ secrets.GITHUB_TOKEN }} doc-index-dev: name: "Deploy dev docs index" - #if: github.ref == 'refs/heads/main' + if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest - needs: docs-build + needs: [doc-deploy-dev] steps: - name: "Deploy the dev documentation index" uses: ansys/actions/doc-deploy-index@v4