diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index f04183ddd..f9785e16d 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -38,6 +38,18 @@ concurrency: cancel-in-progress: true jobs: + update-changelog: + name: "Update CHANGELOG for new tag" + 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 }} + style: name: Code style runs-on: ubuntu-latest @@ -630,7 +642,7 @@ jobs: release: name: Release project if: github.event_name == 'push' && contains(github.ref, 'refs/tags') - needs: [package] + needs: [package, update-changelog] runs-on: ubuntu-latest steps: - name: Release to the public PyPI repository diff --git a/doc/changelog.d/710.added.md b/doc/changelog.d/710.added.md new file mode 100644 index 000000000..ca9ca8cf7 --- /dev/null +++ b/doc/changelog.d/710.added.md @@ -0,0 +1 @@ +feat: set up doc-deploy-changelog action \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index d74e2b33e..7fef2ae33 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -141,6 +141,7 @@ markers = [ xfail_strict = true [tool.towncrier] +package = "ansys.mechanical.core" directory = "doc/changelog.d" filename = "CHANGELOG.md" start_string = "\n"