Skip to content

Commit 11cf4fb

Browse files
[Update] GH action to pack tools and add to release notes; fixes #25
1 parent 65f74aa commit 11cf4fb

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,26 @@ jobs:
127127
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
128128
run: dotnet nuget push ReleaseBuilds/*.nupkg -k "$NUGET_API_KEY" -s https://api.nuget.org/v3/index.json --skip-duplicate
129129

130+
- name: Publish EcoreNetto.Tools (win-x64 single-file, self-contained)
131+
run: |
132+
dotnet publish -c Release EcoreNetto.Tools/EcoreNetto.Tools.csproj \
133+
-r win-x64 --self-contained true -p:PublishSingleFile=true \
134+
-o ReleaseBuilds
135+
136+
- name: Append binary SHA256 to release notes
137+
run: |
138+
set -euo pipefail
139+
BIN="ReleaseBuilds/EcoreNetto.Tools.exe"
140+
if [ -f "$BIN" ]; then
141+
HASH=$(sha256sum "$BIN" | awk '{print $1}')
142+
echo "" >> RELEASE_NOTES.md
143+
echo "\`EcoreNetto.Tools.exe\` - SHA256: $HASH" >> RELEASE_NOTES.md
144+
echo "Computed SHA256: $HASH"
145+
else
146+
echo "Binary $BIN not found." >&2
147+
exit 1
148+
fi
149+
130150
- name: Create annotated tag at this commit
131151
run: |
132152
git tag -a "${VERSION}" -m "Release ${VERSION}"

0 commit comments

Comments
 (0)