From a481ca301de14a30f0c67504c8f446262db0de9c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 1 Oct 2024 22:11:56 +0000 Subject: [PATCH 1/3] Bump ansys/actions from 7 to 8 Bumps [ansys/actions](https://github.com/ansys/actions) from 7 to 8. - [Release notes](https://github.com/ansys/actions/releases) - [Commits](https://github.com/ansys/actions/compare/v7...v8) --- updated-dependencies: - dependency-name: ansys/actions dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/ci.yml | 2 +- .github/workflows/docs.yml | 2 +- .github/workflows/releaser.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c79f7fc5f..f5147ca59 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -209,7 +209,7 @@ jobs: needs: [docs] steps: - name: "Upload development documentation" - uses: ansys/actions/doc-deploy-dev@v7 + uses: ansys/actions/doc-deploy-dev@v8 with: cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5209b8d55..d5be859d9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -63,7 +63,7 @@ jobs: runs-on: ubuntu-latest steps: - name: "Running documentation style checks" - uses: ansys/actions/doc-style@v7 + uses: ansys/actions/doc-style@v8 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index ebec87c50..47e66826e 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -90,7 +90,7 @@ jobs: path: HTML-doc-ansys-dpf-post.zip - name: "Deploy the stable documentation" - uses: ansys/actions/doc-deploy-stable@v7 + uses: ansys/actions/doc-deploy-stable@v8 with: cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.GITHUB_TOKEN }} @@ -122,7 +122,7 @@ jobs: echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV - name: "Deploy the latest documentation index" - uses: ansys/actions/doc-deploy-index@v7 + uses: ansys/actions/doc-deploy-index@v8 with: cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }} index-name: pydpf-post-v${{ env.VERSION_MEILI }} From 0de8be63b9ca10f1cb224994c9d8584a5853a81f Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Wed, 2 Oct 2024 17:05:12 +0200 Subject: [PATCH 2/3] Remove Meilisearch and doc-deploy-index since deprecated with ansys-actions v8 --- .github/workflows/releaser.yml | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index 47e66826e..9a0f8b85e 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -17,8 +17,6 @@ on: env: DOCUMENTATION_CNAME: 'post.docs.pyansys.com' - MEILISEARCH_API_KEY: ${{ secrets.MEILISEARCH_API_KEY }} - MEILISEARCH_PUBLIC_API_KEY: ${{ secrets.MEILISEARCH_PUBLIC_API_KEY }} jobs: @@ -112,25 +110,6 @@ jobs: python3 -m venv .venv .venv/bin/python -m pip install -e . - - name: "Get the version to PyMeilisearch" - run: | - VERSION=$(.venv/bin/python -c "from ansys.dpf.post import __version__; print('.'.join(__version__.split('.')[:2]))") - VERSION_MEILI=$(.venv/bin/python -c "from ansys.dpf.post 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@v8 - with: - cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }} - index-name: pydpf-post-v${{ env.VERSION_MEILI }} - host-url: ${{ vars.MEILISEARCH_HOST_URL }} - api-key: ${{ env.MEILISEARCH_API_KEY }} - doc-artifact-name: HTML-doc-ansys-dpf-post.zip - decompress-artifact: true - update_ansys_lab_examples: uses: ./.github/workflows/ansys_lab.yml needs: get_latest_tag From 17db01dc9a011d95fe06186bd1b26fde7e48a30c Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Wed, 2 Oct 2024 17:11:15 +0200 Subject: [PATCH 3/3] Updates to doc-deploy-stable and doc-deploy-dev inputs --- .github/workflows/ci.yml | 4 +++- .github/workflows/releaser.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5147ca59..a09f99f8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -212,6 +212,8 @@ jobs: uses: ansys/actions/doc-deploy-dev@v8 with: cname: ${{ env.DOCUMENTATION_CNAME }} - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} + bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} + bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} doc-artifact-name: HTML-doc-ansys-dpf-post.zip decompress-artifact: true diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index 9a0f8b85e..03214e3ce 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -91,7 +91,9 @@ jobs: uses: ansys/actions/doc-deploy-stable@v8 with: cname: ${{ env.DOCUMENTATION_CNAME }} - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} + bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} + bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} doc-artifact-name: HTML-doc-ansys-dpf-post.zip decompress-artifact: true