Skip to content

Commit a8c6e63

Browse files
committed
.NET Release Workflow (cross-platform compatibility)
1 parent 7d2d2c9 commit a8c6e63

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/dotnet_release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
run: |
5151
if [[ $RUNNER_OS == 'Windows' ]]; then
5252
cd ./publish
53-
powershell Compress-Archive -Path * -DestinationPath "../WriterSharp_${{ env.VERSION }}_win64.zip"
53+
powershell Compress-Archive -Path (Get-ChildItem -Path . -Recurse | Select-Object -ExpandProperty FullName) -DestinationPath "../WriterSharp_${{ env.VERSION }}_win64.zip"
5454
elif [[ $RUNNER_OS == 'Linux' ]]; then
5555
cd ./publish
5656
zip -r "../WriterSharp_${{ env.VERSION }}_linux64.zip" *
@@ -77,11 +77,18 @@ jobs:
7777
fi # can we talk about how YAML thinks reversing if sounds like ending an if :skull:
7878
shell: bash
7979

80+
- name: Append Release Warning
81+
run:
82+
echo "> [!WARNING]" >> LatestReleaseNotes.md
83+
echo "> The following binaries were not compiled manually. Use them at your own risk." >> LatestReleaseNotes.md"
84+
8085
# Step 10
8186
- name: Create Release
8287
uses: softprops/action-gh-release@v1
8388

8489
with:
90+
body_path: LatestReleaseNotes.md
91+
generate_release_notes: true
8592
files: |
8693
./*.zip
8794
./*.tar.gz

0 commit comments

Comments
 (0)