Skip to content

Commit c9f5f57

Browse files
committed
Revert release notes generation changes
1 parent 64ea305 commit c9f5f57

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818
steps:
1919
- name: Checkout code
2020
uses: actions/checkout@v4
21-
with:
22-
fetch-depth: 0 # Fetch all history for changelog generation
2321

2422
- name: Set up Python
2523
uses: actions/setup-python@v5
@@ -47,34 +45,6 @@ jobs:
4745
echo "VERSION=$version" >> $env:GITHUB_OUTPUT
4846
echo "Version: $version"
4947
50-
- name: Generate release notes
51-
id: release_notes
52-
run: |
53-
$tag = "v${{ steps.version.outputs.VERSION }}"
54-
55-
# Get the previous tag
56-
$previousTag = git describe --tags --abbrev=0 HEAD^ 2>$null
57-
58-
if ($previousTag) {
59-
# Generate commit log between tags
60-
$commits = git log "$previousTag..HEAD" --pretty=format:"- %s (%h)" --no-merges
61-
} else {
62-
# First release - show recent commits
63-
$commits = git log -10 --pretty=format:"- %s (%h)" --no-merges
64-
}
65-
66-
$releaseNotes = @"
67-
## What's Changed
68-
69-
$commits
70-
71-
**Full Changelog**: https://github.com/${{ github.repository }}/compare/$previousTag...$tag
72-
"@ -replace "`r`n", "`n"
73-
74-
# Escape for GitHub Actions
75-
$releaseNotes = $releaseNotes -replace '%', '%25' -replace "`n", '%0A' -replace "`r", '%0D'
76-
echo "NOTES=$releaseNotes" >> $env:GITHUB_OUTPUT
77-
7848
- name: Create version info file
7949
run: |
8050
@"
@@ -112,4 +82,4 @@ jobs:
11282
dotnet tool install -g vpk
11383
vpk download github --repoUrl https://github.com/${{ github.repository }} --token ${{ secrets.GITHUB_TOKEN }}
11484
vpk pack --packId ChiselPDF --packVersion ${{ steps.version.outputs.VERSION }} --packDir .\dist\ChiselPDF --mainExe ChiselPDF.exe
115-
vpk upload github --repoUrl https://github.com/${{ github.repository }} --publish --releaseName "ChiselPDF ${{ steps.version.outputs.VERSION }}" --tag v${{ steps.version.outputs.VERSION }} --releaseNotes "${{ steps.release_notes.outputs.NOTES }}" --token ${{ secrets.GITHUB_TOKEN }}
85+
vpk upload github --repoUrl https://github.com/${{ github.repository }} --publish --releaseName "ChiselPDF ${{ steps.version.outputs.VERSION }}" --tag v${{ steps.version.outputs.VERSION }} --token ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)