Skip to content

Commit 97b4dd4

Browse files
committed
build: Add changelog and release steps
1 parent 821cbae commit 97b4dd4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,23 @@ jobs:
9393
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
9494
repository: ${{ env.IMAGE_NAME }}
9595
short-description: ClassicPress Docker Image
96+
97+
- if: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
98+
name: Create Changelog
99+
id: changelog
100+
uses: requarks/changelog-action@v1
101+
with:
102+
token: ${{ github.token }}
103+
tag: ${{ github.ref_name }}
104+
writeToFile: false
105+
excludeTypes: build,docs,style
106+
excludeScopes: deploy,version
107+
includeInvalidCommits: true
108+
109+
- if: ${{ github.event_name == 'push' && github.ref_name == 'master' }}
110+
name: Release
111+
uses: ncipollo/release-action@v1
112+
with:
113+
token: ${{ github.token }}
114+
tag: ${{ steps.version.outputs.value }}
115+
body: ${{ steps.changelog.outputs.changes }}

0 commit comments

Comments
 (0)