Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/source/changelog/1426.maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update migration guide for \`v11\` release
69 changes: 65 additions & 4 deletions doc/source/migrations/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,35 @@ Version ``v11``
``release-pypi-test`` actions no longer support publishing packages to PyPI using tokens. As a result, they
are deprecated starting with ``v11``. Projects must migrate to trusted publishing. Contact the PyAnsys Core
Team at pyansys.core@ansys.com for enabling trusted publishing for your project and refer to
:ref:`release_pypi_trusted_publisher` for setup details.
:ref:`release_pypi_trusted_publisher` for setup details. Note that ``release-pypi-private`` is not affected
and still supports token-based publishing due to the limitations of the private index.

- **Removal of deprecated input from release-github action:** The ``generate_release_notes`` input of the
``release-github`` action was deprecated in ``v10`` and is completely removed starting with ``v11``.
Use the ``generate-release-notes`` parameter instead.
- **Removal of deprecated inputs from multiple actions:** Several inputs that were previously deprecated
have been completely removed:

- ``generate_release_notes`` removed from ``release-github``. Use ``generate-release-notes`` instead.
- ``toml-version`` removed from ``doc-changelog``, ``doc-deploy-changelog``, ``doc-style``, and
``release-github``.
- ``python-version`` and ``use-uv`` removed from ``hk-package-clean-except`` and
``hk-package-clean-untagged``. These actions now use an internally managed Python setup.

**New actions:**

- **Deploy documentation to a custom path:** A new ``doc-deploy-custom-path`` action has been added. It
deploys HTML documentation to a user-specified subdirectory of the deployment branch (``gh-pages`` by
default). The rendered documentation is available at ``https://<cname>/<custom-path>/``. The action
validates the ``custom-path`` input to prevent conflicts with reserved paths used by the other
``doc-deploy-*`` actions (such as ``version`` and ``pull``). See :doc:`../doc-actions/index` for usage details.

**New Features:**

- **Poetry-native install in check-licenses:** For Poetry-based projects, the ``check-licenses`` action
now installs the project and its dependency targets through Poetry, aligning with the installation
behavior of the other actions. This improves reliability of license checks for Poetry projects. No
user-facing input change is required.

- **Minimum permissions documented in examples:** All action examples now also document the minimum GitHub permissions
required to run them, making it easier to set up workflows with the correct permissions.

**Migration Steps:**

Expand All @@ -39,6 +63,43 @@ Version ``v11``
Although backwards compatibility is maintained, you are advised to set one of the inputs explicitly to avoid
future breaking changes.

- **Remove references to removed inputs from your workflows:** Search your workflows for references to
the inputs listed in the preceding breaking changes section (``generate_release_notes`` on the ``release-github`` action,
``toml-version`` on the ``doc-*`` and ``release-github`` actions, and ``python-version`` / ``use-uv`` on the
``hk-package-clean-*`` actions) and drop them. For example, for ``hk-package-clean-untagged``:

.. tab-set::

.. tab-item:: Before

.. code:: yaml

- name: "Clean untagged packages"
uses: ansys/actions/hk-package-clean-untagged@v10
with:
package-name: my-package
python-version: '3.12'
use-uv: true

.. tab-item:: After

.. code:: yaml

- name: "Clean untagged packages"
uses: ansys/actions/hk-package-clean-untagged@v11
with:
package-name: my-package

- **Review usage of still-deprecated inputs:** The following inputs still exist but now emit an
``ERROR``-level deprecation notice (previously ``WARNING``) and are scheduled for removal in ``v12``.
Migrate away from them now to avoid disruption in the next major release:

- ``use-conventional-commits`` on the ``doc-changelog`` action: use ``use-pull-request-title`` instead.
- ``tomli-version`` on the ``doc-changelog``, ``doc-deploy-changelog``, ``doc-style``, and ``release-github`` actions.
- ``towncrier-version`` and ``tomlkit-version`` on the ``doc-changelog``, ``doc-deploy-changelog``,
and ``release-github`` actions. ``tomlkit-version`` is also affected in the ``doc-style`` action.
- ``pypandoc-binary-version`` on the ``release-github`` action.

Version ``v10.3``
-----------------

Expand Down
Loading