Skip to content

Commit 4a524f1

Browse files
committed
Read changelog uses ForNeVeR/ChangelogAutomation.action@v1
1 parent cd3559b commit 4a524f1

2 files changed

Lines changed: 22 additions & 9 deletions

File tree

.github/workflows/main.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,33 @@ on:
99
schedule:
1010
- cron: '0 0 * * 6'
1111

12+
workflow_dispatch:
13+
1214
jobs:
1315
main:
1416
runs-on: windows-2019
17+
1518
env:
1619
DOTNET_NOLOGO: 1
1720
DOTNET_CLI_TELEMETRY_OPTOUT: 1
1821
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages
22+
1923
steps:
2024
- name: Checkout
21-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
2226

2327
- name: Verify encoding
2428
shell: pwsh
2529
run: ./scripts/verify-encoding.ps1
2630

2731
- name: NuGet cache
28-
uses: actions/cache@v2
32+
uses: actions/cache@v3
2933
with:
3034
path: ${{ env.NUGET_PACKAGES }}
3135
key: ${{ runner.os }}.nuget.${{ hashFiles('**/*.csproj') }}
36+
3237
- name: Set up .NET SDK
33-
uses: actions/setup-dotnet@v1
38+
uses: actions/setup-dotnet@v3
3439
with:
3540
dotnet-version: |
3641
3.1.x
@@ -39,7 +44,9 @@ jobs:
3944
4045
- name: Build
4146
run: dotnet build
47+
4248
- name: Pack
4349
run: dotnet pack
50+
4451
- name: Test
4552
run: dotnet test

.github/workflows/nuget.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
tags:
55
- 'v*'
66

7+
workflow_dispatch:
8+
79
jobs:
810
nuget-push:
911
runs-on: windows-2019
@@ -18,25 +20,27 @@ jobs:
1820
run: Write-Output "::set-output name=version::$($env:GITHUB_REF -replace '^refs/tags/v', '')"
1921

2022
- name: Checkout
21-
uses: actions/checkout@v2
23+
uses: actions/checkout@v3
2224

2325
- name: NuGet cache
24-
uses: actions/cache@v2
26+
uses: actions/cache@v3
2527
with:
2628
path: ${{ env.NUGET_PACKAGES }}
2729
key: release.nuget.${{ hashFiles('**/*.csproj') }}
30+
2831
- name: Set up .NET SDK
29-
uses: actions/setup-dotnet@v1
32+
uses: actions/setup-dotnet@v3
3033
with:
3134
dotnet-version: '7.0.x'
3235

3336
- name: Prepare a NuGet package
3437
run: dotnet pack --configuration Release -p:Version=${{ steps.version.outputs.version }}
38+
3539
- name: Read changelog
3640
id: changelog
37-
uses: mindsers/changelog-reader-action@v2
41+
uses: ForNeVeR/ChangelogAutomation.action@v1
3842
with:
39-
version: ${{ steps.version.outputs.version }}
43+
output: ./release-notes.md
4044

4145
- name: Create release
4246
id: release
@@ -46,7 +50,8 @@ jobs:
4650
with:
4751
tag_name: ${{ github.ref }}
4852
release_name: WPF-Math v${{ steps.version.outputs.version }}
49-
body: ${{ steps.changelog.outputs.changes }}
53+
body_path: ./release-notes.md
54+
5055
- name: Upload .nupkg file
5156
uses: actions/upload-release-asset@v1
5257
env:
@@ -56,6 +61,7 @@ jobs:
5661
asset_name: WPF-Math.${{ steps.version.outputs.version }}.nupkg
5762
asset_path: ./src/WpfMath/bin/Release/WpfMath.${{ steps.version.outputs.version }}.nupkg
5863
asset_content_type: application/zip
64+
5965
- name: Upload .snupkg file
6066
uses: actions/upload-release-asset@v1
6167
env:

0 commit comments

Comments
 (0)