File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 2323 run : dotnet restore Tnfsd.NET.sln
2424
2525 - name : Build and publish single-file EXE
26- run : dotnet publish Tnfsd.NET/Tnfsd.NET.csproj -c Release -r win-x64 --self-contained true ^
27- /p:PublishSingleFile=true /p:IncludeAllContentForSelfExtract=false /p:PublishTrimmed=false
26+ env :
27+ TAG_VERSION : ${{ github.ref_name }}
28+ run : |
29+ # Strip the leading "v" if present
30+ $version = $env:TAG_VERSION -replace '^v', ''
31+
32+ echo "Building version $version"
33+
34+ dotnet publish Tnfsd.NET/Tnfsd.NET.csproj -c Release -r win-x64 --self-contained true `
35+ /p:PublishSingleFile=true `
36+ /p:IncludeAllContentForSelfExtract=false `
37+ /p:PublishTrimmed=false `
38+ /p:AssemblyVersion=$version.0 `
39+ /p:FileVersion=$version.0 `
40+ /p:InformationalVersion=$env:TAG_VERSION
2841
2942 - name : Upload build artifacts
3043 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 1616 <IncludeAllContentForSelfExtract >false</IncludeAllContentForSelfExtract >
1717 <PublishTrimmed >false</PublishTrimmed >
1818 <RuntimeIdentifier >win-x64</RuntimeIdentifier >
19+ <Title >Tnfsd.NET</Title >
20+ <Description >TNFSD Manager for Windows</Description >
21+ <Company >Rich Stephens</Company >
22+ <Authors >Rich Stephens</Authors >
1923 </PropertyGroup >
2024
2125 <ItemGroup >
You can’t perform that action at this time.
0 commit comments