Skip to content

Commit 096d1d6

Browse files
committed
ci(changelog): include changelog in release description
1 parent 69b3753 commit 096d1d6

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
name: release
22

33
on:
4-
workflow_dispatch:
5-
branches: [ main ]
4+
workflow_dispatch:
5+
branches: [ main ]
66

77
jobs:
88
build:
9-
109
runs-on: ubuntu-latest
1110
env:
1211
PROJ_ID: Enhanced.ComponentModel
1312
PROJ_PATH: src\Enhanced.ComponentModel\Enhanced.ComponentModel.csproj
1413

1514
steps:
16-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v2
16+
1717
- name: Bump version
1818
id: bump_version
1919
uses: mathieudutour/github-tag-action@v5.3
@@ -22,20 +22,26 @@ jobs:
2222
tag_prefix: release/v
2323
create_annotated_tag: false
2424
dry_run: true
25+
2526
- name: Setup .NET
2627
uses: actions/setup-dotnet@v1
2728
with:
2829
dotnet-version: 5.0.x
30+
2931
- name: Restore dependencies
3032
run: dotnet restore $PROJ_PATH
33+
3134
- name: Build
3235
run: dotnet build $PROJ_PATH --no-restore -c release -p:version=${{ steps.bump_version.outputs.new_version }}
36+
3337
- name: Pack
3438
run: dotnet pack $PROJ_PATH --no-build --include-symbols -o out -c release -p:version=${{ steps.bump_version.outputs.new_version }}
39+
3540
- name: Push
3641
env:
3742
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
3843
run: dotnet nuget push out/$PROJ_ID.${{ steps.bump_version.outputs.new_version }}.nupkg -s nuget.org -k $NUGET_API_KEY
44+
3945
- name: Tag version
4046
id: tag_version
4147
uses: mathieudutour/github-tag-action@v5.3
@@ -44,6 +50,7 @@ jobs:
4450
tag_prefix: release/v
4551
create_annotated_tag: true
4652
dry_run: false
53+
4754
- name: Create a GitHub release
4855
uses: actions/create-release@v1
4956
env:
@@ -52,3 +59,4 @@ jobs:
5259
tag_name: ${{ steps.tag_version.outputs.new_tag }}
5360
release_name: Release ${{ steps.tag_version.outputs.new_version }}
5461
artifact: out/$PROJ_ID.${{ steps.bump_version.outputs.new_version }}.nupkg
62+
body: ${{ steps.tag_version.outputs.changelog }}

Enhanced.ComponentModel.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1212
ProjectSection(SolutionItems) = preProject
1313
.gitignore = .gitignore
1414
Directory.Build.props = Directory.Build.props
15+
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
1516
Enhanced.ComponentModel.snk = Enhanced.ComponentModel.snk
1617
global.json = global.json
1718
LICENSE = LICENSE

0 commit comments

Comments
 (0)