File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change 4141
4242 - name : Get Next Version and Create Tag
4343 id : get_version
44- shell : bash # Use bash for git commands
44+ shell : bash
4545 run : |
4646 # Get the highest existing tag (if any)
4747 latestTag=$(git describe --tags --abbrev=0 --match "v*" 2>/dev/null)
7070
7171 echo "NUGET_VERSION=$nextVersion" >> "$GITHUB_OUTPUT"
7272
73- - name : Get Release Notes (from releasenotes.md)
74- id : get_release_notes
75- shell : bash
76- run : |
77- releaseNotes=$(cat ParseLiveQuery/docs/ReleaseNotes.md) # Corrected path
78- echo "RELEASE_NOTES<<EOF" >> "$GITHUB_OUTPUT"
79- echo "$releaseNotes" >> "$GITHUB_OUTPUT"
80- echo "EOF" >> "$GITHUB_OUTPUT"
81-
8273 - name : Pack NuGet package
83- run : |
84- release_notes_escaped=$(sed -e 's/["\$`\\]/\\&/g' <<< "${{ steps.get_release_notes.outputs.RELEASE_NOTES }}")
85- dotnet pack --configuration Release -o . /p:Version=${{ steps.get_version.outputs.NUGET_VERSION }} /p:PackageReleaseNotes="$release_notes_escaped"
74+ run : dotnet pack --configuration Release -o . /p:Version=${{ steps.get_version.outputs.NUGET_VERSION }}
8675
8776 - name : Push NuGet package to NuGet.org
8877 run : dotnet nuget push "*.nupkg" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
9584 with :
9685 tag_name : v${{ steps.get_version.outputs.NUGET_VERSION }}
9786 release_name : Release v${{ steps.get_version.outputs.NUGET_VERSION }}
98- body : ${{ steps.get_release_notes.outputs.RELEASE_NOTES }}
87+ body : " " # Empty body - no release notes
9988 draft : false
10089 prerelease : false
You can’t perform that action at this time.
0 commit comments