Migration guide#
This guide provides information on new features, breaking changes, how to migrate from one version of the actions to another, and other upstream dependencies that have been updated.
Version v8
#
Breaking changes:
Use secrets for commit and push credentials within
ansys/actions/doc-changelog
,ansys/actions/doc-deploy-changelog
,ansys/actions/doc-deploy-dev
, andansys/actions/doc-deploy-stable
.
Deprecated features:
The
ansys/actions/doc-deploy-index
action has been deprecated and will be removed in the next release. With the deprecation ofpymeilisearch
and the adoption of a static search index via theansys-sphinx-theme
, theansys/actions/doc-deploy-index
action is no longer necessary.The
ansys/actions/commit-style
action has been renamed toansys/actions/check-pr-title
.The
ansys/actions/branch-name-style
actions has been removed in favor of GitHub rulesets.
Migration steps:
Add the following required inputs to
ansys/actions/doc-changelog
,ansys/actions/doc-deploy-changelog
,ansys/actions/doc-deploy-dev
, andansys/actions/doc-deploy-stable
:
bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
Version v7
#
New features:
Added an optional input to the
ansys/actions/build-library
action to disable library build validation on demand using thevalidate-build: false
argument. This is useful when you want to skip the library build validation step in the action.Incorporated the usage of Trusted Publisher in the
ansys/actions/release-pypi-*
actions. This is useful when you want to sign the package before uploading it to PyPI.
Migration steps:
To set up your repository to use the
ansys/actions/release-pypi-*
action with the Trusted Publisher approach, see the Release to PyPI as a trusted publisher.
Version v6
#
New features:
Added the
ansys/actions/check-vulnerabilities
action to check for third-party and first-party vulnerabilities. This is useful when you want to hide the vulnerabilities from the logs, but still want to fail the action if vulnerabilities are found.Avoid creating issues by default if vulnerabilities are found in the
ansys/actions/check-vulnerabilities
action.Create a changelog fragment file for each pull request using
towncrier
in theansys/actions/doc-changelog
action.Generate a new section in
CHANGELOG.md
if fragment files exist usingtowncrier
in theansys/actions/doc-deploy-changelog
action. By default, it updates the CHANGELOG in the release branch and creates a pull request into the main branch with the updated CHANGELOG and deleted fragment files.SEO improvements. These are implemented inside the doc-deploy-dev and the doc-deploy-stable. Users are not required to apply any changes to their
conf.py
or.github/workflows/*.yml
files. Noticable changes include:No more redirect from landing page to version/stable/index.html
Generation of
robots.txt
file for avoiding indexing old documentation versionsGeneration of sitemap.xml file for quicker indexing of version/stable/ pages
Inclusion of canonical link tags in all HTML files for SEO purposes
Extend
ansys/actions/doc-build
to be able to run in Windows runners. To buid the documentation in a Windows runner, we installChocolatey
andMiktex
.Allow
ansys/actions/commit-style
to work with upper case in the type field of a commit. Expected types are upper cases of conventional commit types.
Breaking changes:
Upgrade default
vale
version from2.29.6
to3.4.1
inansys/actions/doc-style
action.Vale configuration file
.vale.ini
andVocab/ANSYS
has to be changed.
Migration steps:
To set up your repository to use the
ansys/actions/doc-changelog
action, see the Doc-changelog action setup.To set up your repository to use the
ansys/actions/doc-deploy-changelog
action, see the Doc-deploy-changelog action setup.To set up your repository to use the
ansys/actions/doc-style
action, see the Doc-style action - migrating from Vale 2.X to 3.X.
Version v5
#
New features:
Added
ansys/action/check-vulnerabilities
to verify third party and first party vulnerabilities. This action usesbandit
andsafety
to detect vulnerabilities in the code and dependencies, respectively.Added
ansys/actions/docker-style
to detect Dockerfile style issues usinghadolint
.Allow
vale
version input inansys/actions/doc-style
action. By default,2.29.6
is used.Allow using the twine
--skip-existing
flag in theansys/actions/release-pypi-*
actions.Allow using the
ansys/actions/doc-build
action to build documentation using a dedicated requirements file (and consequently, no need to have a Python project to use it).Allow for independent documentation releases in case of patch release when using
ansys/actions/doc-deploy-stable
action. This will create independent documentation versions for patch releases.
Breaking changes:
Upgrade
actions/upload-artifact
andactions/download-artifact
to versionv4
.Upgrade
actions/setup-python
to versionv5
.
Migration steps:
Since artifacts are uploaded/downloaded using the new
actions/*-artifact
, artifact names cannot be duplicated inside the workflow. Also, versionsv3
andv4
are incompatible with each other. If you are using versionv3
independently inside your workflow, you need to upgrade to versionv4
.The upgrade to
actions/setup-python
versionv5
is not mandatory, but it is recommended to use the latest version. However, it has been seen that in Windows self-hosted runners, if a certain Python version is not already stored in the cache, the action fails. This is a known issue and the workaround is to use the previous version of the action.
Dependency changes:
Upgrade
actions/checkout
to versionv4
.Upgrade
pypa/cibuildwheel
to versionv2.16.2
.Upgrade
peter-evans/create-or-update-comment
to versionv4
.Upgrade
vimtor/action-zip
to versionv1.2
.
Version v4
#
Breaking changes:
Multi-version documentation deployment using
ansys/actions/doc-deploy-stable
andansys/actions/doc-deploy-dev
.
Migration steps:
Visit Enable multi-version documentation for a detailed migration guide.