mirror of
https://github.com/unclshura/splitter.git
synced 2026-06-21 16:12:01 +00:00
No idea why it does not work...
This commit is contained in:
parent
9a27a083ab
commit
b4f0fe0a80
9
.github/workflows/publish.yml
vendored
9
.github/workflows/publish.yml
vendored
@ -23,14 +23,11 @@ jobs:
|
||||
run: dotnet restore -r win-x64
|
||||
|
||||
- name: Build Release
|
||||
run: dotnet build -c Release --no-restore `
|
||||
/p:BuildNumber=${{ github.run_number }} `
|
||||
/p:SourceRevisionId=${{ github.sha }}
|
||||
run: dotnet build -c Release --no-restore /p:BuildNumber=${{ github.run_number }} /p:SourceRevisionId=${{ github.sha }}
|
||||
|
||||
- name: Publish Release
|
||||
run: dotnet publish -c Release -r win-x64 --self-contained true --no-build `
|
||||
/p:BuildNumber=${{ github.run_number }} `
|
||||
/p:SourceRevisionId=${{ github.sha }}
|
||||
run: dotnet publish -c Release -r win-x64 --self-contained true --no-build /p:BuildNumber=${{ github.run_number }} /p:SourceRevisionId=${{ github.sha }}
|
||||
|
||||
|
||||
- name: Create ZIP
|
||||
shell: pwsh
|
||||
|
||||
@ -44,7 +44,12 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="GenerateBuildInfo" BeforeTargets="PrepareForBuild">
|
||||
<ReadLinesFromFile File="ThisAssembly.template">
|
||||
<Message Text="=== GENERATE BUILD INFO ===" Importance="High" />
|
||||
<Message Text="Version: $(Version)" Importance="High" />
|
||||
<Message Text="BuildNumber: $(BuildNumber)" Importance="High" />
|
||||
<Message Text="Commit: $(SourceRevisionId)" Importance="High" />
|
||||
|
||||
<ReadLinesFromFile File="$(MSBuildProjectDirectory)\ThisAssembly.template">
|
||||
<Output TaskParameter="Lines" ItemName="BuildInfoLines" />
|
||||
</ReadLinesFromFile>
|
||||
|
||||
@ -52,8 +57,11 @@
|
||||
<ProcessedBuildInfoLines Include="@(BuildInfoLines->Replace('@VERSION@', '$(Version)')->Replace('@BUILDNUMBER@', '$(BuildNumber)')->Replace('@COMMIT@', '$(SourceRevisionId)'))" />
|
||||
</ItemGroup>
|
||||
|
||||
<Message Text="Template: @(BuildInfoLines)" Importance="High" />
|
||||
<Message Text="Processed: @(ProcessedBuildInfoLines)" Importance="High" />
|
||||
|
||||
<WriteLinesToFile
|
||||
File="ThisAssembly.g.cs"
|
||||
File="$(MSBuildProjectDirectory)\ThisAssembly.g.cs"
|
||||
Overwrite="true"
|
||||
Lines="@(ProcessedBuildInfoLines)" />
|
||||
</Target>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user