diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c79f7fc5f..a09f99f8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -209,9 +209,11 @@ 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 }} + 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/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..03214e3ce 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: @@ -90,10 +88,12 @@ 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 }} + 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 @@ -112,25 +112,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@v7 - 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