Skip to content

Commit

Permalink
feat: set up doc-deploy-changelog action (#710)
Browse files Browse the repository at this point in the history
Co-authored-by: pyansys-ci-bot <[email protected]>
  • Loading branch information
klmcadams and pyansys-ci-bot authored Apr 18, 2024
1 parent 09810d3 commit 4c46e2b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/710.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
feat: set up doc-deploy-changelog action
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ markers = [
xfail_strict = true

[tool.towncrier]
package = "ansys.mechanical.core"
directory = "doc/changelog.d"
filename = "CHANGELOG.md"
start_string = "<!-- towncrier release notes start -->\n"
Expand Down

0 comments on commit 4c46e2b

Please sign in to comment.