diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index e45f750e..263b5e19 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -12,8 +12,6 @@ env: MAIN_PYTHON_VERSION : '3.10' PACKAGE_NAME: 'ansys_sphinx_theme' DOCUMENTATION_CNAME: 'sphinxdocs.ansys.com' - MEILISEARCH_API_KEY: ${{ secrets.MEILISEARCH_API_KEY }} - MEILISEARCH_PUBLIC_API_KEY: ${{ secrets.MEILISEARCH_PUBLIC_API_KEY }} concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -26,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - name: "Run Ansys code style checks" - uses: ansys/actions/code-style@v7 + uses: ansys/actions/code-style@v8 with: python-version: ${{ env.MAIN_PYTHON_VERSION }} @@ -35,7 +33,7 @@ jobs: runs-on: ubuntu-latest steps: - name: "Run Ansys documentation style checks" - uses: ansys/actions/doc-style@v7 + uses: ansys/actions/doc-style@v8 with: token: ${{ secrets.GITHUB_TOKEN }} @@ -47,7 +45,7 @@ jobs: contents: write pull-requests: write steps: - - uses: ansys/actions/doc-deploy-changelog@v7 + - uses: ansys/actions/doc-deploy-changelog@v8 with: token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} @@ -57,7 +55,7 @@ jobs: needs: doc-style steps: - name: "Run Ansys documentation building action" - uses: ansys/actions/doc-build@v7 + uses: ansys/actions/doc-build@v8 with: python-version: ${{ env.MAIN_PYTHON_VERSION }} add-pdf-html-docs-as-assets: true @@ -71,7 +69,7 @@ jobs: needs: build-library steps: - name: "Deploy developers documentation" - uses: ansys/actions/doc-deploy-dev@v7 + uses: ansys/actions/doc-deploy-dev@v8 with: cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.GITHUB_TOKEN }} @@ -83,7 +81,7 @@ jobs: needs: release steps: - name: "Deploy 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 }} @@ -105,7 +103,7 @@ jobs: os: macos-latest steps: - name: "Build wheelhouse and perform smoke test" - uses: ansys/actions/build-wheelhouse@v7 + uses: ansys/actions/build-wheelhouse@v8 with: library-name: ${{ env.PACKAGE_NAME }} operating-system: ${{ matrix.os }} @@ -117,7 +115,7 @@ jobs: needs: [doc-build, smoke-tests] steps: - name: "Build library source and wheel artifacts" - uses: ansys/actions/build-library@v7 + uses: ansys/actions/build-library@v8 with: library-name: ${{ env.PACKAGE_NAME }} @@ -129,65 +127,20 @@ jobs: steps: - name: "Release to the private PyPI repository" - uses: ansys/actions/release-pypi-private@v7 + uses: ansys/actions/release-pypi-private@v8 with: library-name: ${{ env.PACKAGE_NAME }} twine-username: "__token__" twine-token: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }} - name: "Release to the public PyPI repository" - uses: ansys/actions/release-pypi-public@v7 + uses: ansys/actions/release-pypi-public@v8 with: library-name: ${{ env.PACKAGE_NAME }} twine-username: "__token__" twine-token: ${{ secrets.PYPI_TOKEN }} - name: "Release to GitHub" - uses: ansys/actions/release-github@v7 + uses: ansys/actions/release-github@v8 with: library-name: ${{ env.PACKAGE_NAME }} - - doc-index-dev: - name: "Deploy dev index docs" - if: github.ref == 'refs/heads/main' - runs-on: ubuntu-latest - needs: doc-deploy-development - steps: - - name: "Deploy the latest documentation index" - uses: ansys/actions/doc-deploy-index@v7 - with: - cname: ${{ env.DOCUMENTATION_CNAME }}/version/dev - index-name: "ansys-sphinx-theme-vdev" - host-url: ${{ vars.MEILISEARCH_HOST_URL }} - api-key: ${{ env.MEILISEARCH_API_KEY }} - - doc-index-stable: - name: "Deploy stable docs index" - if: github.event_name == 'push' && contains(github.ref, 'refs/tags') - runs-on: ubuntu-latest - needs: doc-deploy-stable - steps: - - name: "Install Git and clone project" - uses: actions/checkout@v4 - - - name: "get version of library" - shell: bash - run: | - python -m pip install -e . - - - name: Scrape the stable documentation to PyMeilisearch - run: | - VERSION=$(python -c "from ansys_sphinx_theme import __version__; print('.'.join(__version__.split('.')[:2]))") - VERSION_MEILI=$(python -c "from ansys_sphinx_theme 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: ansys-sphinx-theme-v${{ env.VERSION_MEILI }} - host-url: ${{ vars.MEILISEARCH_HOST_URL }} - api-key: ${{ env.MEILISEARCH_API_KEY }} diff --git a/doc/changelog.d/517.fixed.md b/doc/changelog.d/517.fixed.md new file mode 100644 index 00000000..a6cc6c0c --- /dev/null +++ b/doc/changelog.d/517.fixed.md @@ -0,0 +1 @@ +fix(ci): update to Ansys actions v8 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 8168264a..ab4e77f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi" [project] # Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections name = "ansys-sphinx-theme" -version = "1.1.0" +version = "1.1.1" description = "A theme devised by ANSYS, Inc. for Sphinx documentation." readme = "README.rst" requires-python = ">=3.10,<4"