Skip to content

Commit dbfce1d

Browse files
committed
feat: enhance release workflow to extract changelog and create GitHub release
1 parent c739b02 commit dbfce1d

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,26 @@ jobs:
5555
create-release:
5656
runs-on: ubuntu-latest
5757
needs: [meta, publish]
58+
permissions:
59+
contents: write
5860
steps:
5961
- uses: actions/checkout@v5
60-
- uses: rickstaa/action-create-tag@v1
61-
if: ${{ success() && !inputs.prereleaseSlug }}
62+
63+
- name: Extract changelog for current version
64+
if: ${{ !inputs.prereleaseSlug }}
65+
id: changelog
66+
run: |
67+
# Extract content between the first # heading and the next # heading
68+
awk '/^# /{if(found) exit; found=1; next} found' CHANGELOG.md > release_notes.md
69+
cat release_notes.md
70+
71+
- name: Create GitHub Release
72+
if: ${{ !inputs.prereleaseSlug }}
73+
uses: softprops/action-gh-release@v2
6274
with:
63-
tag: ${{ needs.meta.outputs.COALESCE_VERSION }}
75+
tag_name: ${{ needs.meta.outputs.COALESCE_VERSION }}
76+
name: ${{ needs.meta.outputs.COALESCE_VERSION }}
77+
body_path: release_notes.md
6478

6579
build-template:
6680
uses: ./.github/workflows/part-template-build.yml

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 6.1.2
2+
- Add COA0014 analyzer to avoid incorrect usage of `NoAutoInclude`.
3+
14
# 6.1.1
25
- Fix `AddUrlHelper` to create a more full ActionContext when operating outside an MVC action.
36
- Fix errors thrown when filtering and searching on `System.DateOnly` properties.

0 commit comments

Comments
 (0)