fix: remove trimming due to Windows Forms incompatibility #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
release: | |
types: [created] | |
# Add testing trigger for our test branch | |
push: | |
branches: | |
- test-release-workflow | |
paths: | |
- '.github/workflows/release.yml' | |
jobs: | |
build: | |
# Skip actual release upload when testing | |
env: | |
IS_TEST: ${{ github.ref == 'refs/heads/test-release-workflow' }} | |
runs-on: windows-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Build Single-File | |
run: | | |
dotnet restore | |
dotnet publish NeatShift/NeatShift/NeatShift.csproj -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true /p:EnableCompressionInSingleFile=true /p:DebugType=None /p:DebugSymbols=false | |
- name: Build ZIP Package | |
run: | | |
dotnet restore | |
dotnet publish NeatShift/NeatShift/NeatShift.csproj -c Release -r win-x64 --self-contained true /p:DebugType=None /p:DebugSymbols=false | |
Compress-Archive -Path ./NeatShift/NeatShift/bin/Release/net6.0-windows/win-x64/publish/* -DestinationPath ./NeatShift/NeatShift/bin/Release/net6.0-windows/win-x64/NeatShift-Release.zip -Force | |
- name: Check File Sizes | |
if: env.IS_TEST == 'true' | |
run: | | |
Get-Item ./NeatShift/NeatShift/bin/Release/net6.0-windows/win-x64/publish/NeatShift.exe | Select-Object Name, Length | |
Get-Item ./NeatShift/NeatShift/bin/Release/net6.0-windows/win-x64/NeatShift-Release.zip | Select-Object Name, Length | |
- name: Upload Release Assets | |
if: env.IS_TEST != 'true' | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
./NeatShift/NeatShift/bin/Release/net6.0-windows/win-x64/publish/NeatShift.exe | |
./NeatShift/NeatShift/bin/Release/net6.0-windows/win-x64/NeatShift-Release.zip |