Skip to content

Commit 94bf31b

Browse files
ci: build changelog on release (#1118)
Co-authored-by: pyansys-ci-bot <pyansys.github.bot@ansys.com>
1 parent f99c8fc commit 94bf31b

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/ci_cd.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ concurrency:
3030

3131
jobs:
3232

33+
update-changelog:
34+
name: "Update CHANGELOG (on release)"
35+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
36+
runs-on: ubuntu-latest
37+
permissions:
38+
contents: write
39+
pull-requests: write
40+
steps:
41+
- uses: ansys/actions/doc-deploy-changelog@main
42+
with:
43+
token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
44+
3345
vulnerabilities:
3446
name: Vulnerabilities
3547
runs-on: ubuntu-latest
@@ -654,7 +666,7 @@ jobs:
654666
release:
655667
name: Release project
656668
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
657-
needs: [package, build-windows-container, build-linux-container]
669+
needs: [package, build-windows-container, build-linux-container, update-changelog]
658670
runs-on: ubuntu-latest
659671
steps:
660672
- name: Release to the public PyPI repository

doc/changelog.d/1118.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ci: build changelog on release

0 commit comments

Comments
 (0)