Build and release OptimizerNXT #11
This file contains hidden or 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: Build and release OptimizerNXT | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: windows-2025 | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup MSBuild | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Restore NuGet packages | |
| run: nuget restore | |
| - name: Build app | |
| run: > | |
| msbuild | |
| optimizerNXT.slnx | |
| /t:Build | |
| /p:Configuration=Release | |
| /p:Platform="Any CPU" | |
| /p:Optimize=true | |
| /p:Prefer32Bit=false | |
| /p:DebugType=none | |
| /m | |
| - name: Create release description | |
| run: | | |
| $sha256 = Get-FileHash "./optimizerNXT/bin/Release/optimizerNXT.exe" -Algorithm SHA256 | |
| $bodyPath = "./release-body.md" | |
| "SHA256: $($sha256.Hash)" | Out-File -Encoding UTF8 $bodyPath | |
| - name: Create release with tag | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| tag: v0.0.2 | |
| name: Release v0.0.2 | |
| bodyFile: "./release-body.md" | |
| artifacts: "./optimizerNXT/bin/Release/optimizerNXT.exe" |