diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 385956c5..17afd37a 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -39,6 +39,18 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} + update-changelog: + name: "Update CHANGELOG (on release)" + if: github.event_name == 'push' && contains(github.ref, 'refs/tags') + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - uses: ansys/actions/doc-deploy-changelog@v6 + with: + token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} + doc-build: name: Doc building runs-on: ubuntu-latest @@ -109,7 +121,7 @@ jobs: release: name: "Release project to private PyPI, public PyPI and GitHub" if: github.event_name == 'push' && contains(github.ref, 'refs/tags') - needs: build-library + needs: [build-library, update-changelog] runs-on: ubuntu-latest steps: diff --git a/doc/changelog.d/378.fixed.md b/doc/changelog.d/378.fixed.md new file mode 100644 index 00000000..0bf0e178 --- /dev/null +++ b/doc/changelog.d/378.fixed.md @@ -0,0 +1 @@ +fix: add changelog action in ci-cd \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 7f243c4e..96b7d181 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 = "0.16.0" +version = "0.16.1" description = "A theme devised by ANSYS, Inc. for Sphinx documentation." readme = "README.rst" requires-python = ">=3.9,<4"