Skip to content

test

test #14

Workflow file for this run

name: Build and release OptimizerNXT
on:
push:
tags:
- 'v*'
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: |
$exePath = "./optimizerNXT/bin/Release/optimizerNXT.exe"
$bodyPath = "./release-body.md"
$changelogUrl = "https://github.com/hellzerg/optimizerNXT/blob/main/CHANGELOG.md"
$sha256 = Get-FileHash "$exePath" -Algorithm SHA256
$releaseBody = @"
SHA256: $($sha256.Hash)
View changelog ➡ $changelogUrl
"@
$releaseBody | Out-File -Encoding UTF8 $bodyPath
- name: Create release with tag
uses: ncipollo/release-action@v1
with:
tag: ${{ github.ref_name }}
name: OptimizerNXT ${{ github.ref_name }}
allowUpdates: true
replacesArtifacts: true
bodyFile: "./release-body.md"
artifacts: "./optimizerNXT/bin/Release/optimizerNXT.exe"