Skip to content

Commit db7edb6

Browse files
committed
ci: generate release notes with changelogithub
1 parent 2136212 commit db7edb6

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,19 @@ jobs:
1313
runs-on: windows-2025
1414
steps:
1515
- uses: actions/checkout@v7
16+
with:
17+
fetch-depth: 0
1618

1719
- uses: microsoft/setup-msbuild@v3
1820

1921
- uses: actions/setup-python@v6
2022
with:
2123
python-version: '3.13'
2224

25+
- uses: actions/setup-node@v7
26+
with:
27+
node-version: lts/*
28+
2329
- name: Verify tag version
2430
shell: pwsh
2531
run: |
@@ -38,18 +44,26 @@ jobs:
3844
path: dist/*
3945
if-no-files-found: error
4046

41-
- name: Publish prerelease
47+
- name: Generate release notes
48+
shell: pwsh
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
run: |
52+
npx --yes changelogithub@15.0.5 --prerelease
53+
if ($LASTEXITCODE -ne 0) { throw "Failed to generate release notes" }
54+
55+
- name: Upload release files
4256
shell: pwsh
4357
env:
4458
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4559
run: |
4660
$version = (Get-Content VERSION -Raw).Trim()
47-
gh release create $env:GITHUB_REF_NAME `
61+
gh release upload $env:GITHUB_REF_NAME `
4862
dist/FETH_SaveEditor.exe `
4963
"dist/fe3h-editor-v$version.zip" `
5064
dist/SHA256SUMS `
51-
--verify-tag --generate-notes --prerelease
52-
if ($LASTEXITCODE -ne 0) { throw "Failed to publish release" }
65+
--clobber
66+
if ($LASTEXITCODE -ne 0) { throw "Failed to upload release files" }
5367
5468
- name: Verify downloadable files
5569
shell: pwsh

0 commit comments

Comments
 (0)