mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-12 21:38:38 +00:00
Builds - Store build info as JSON for auto-update usage
This commit is contained in:
parent
621cf31c2d
commit
45fef11a67
@ -12,7 +12,11 @@ pool:
|
||||
variables:
|
||||
artemisSolution: '**/Artemis.sln'
|
||||
NUGET_PACKAGES: $(Pipeline.Workspace)/.nuget/packages
|
||||
|
||||
BuildId: $(Build.BuildId)
|
||||
BuildNumber: $(Build.BuildNumber)
|
||||
SourceBranch: $(Build.SourceBranch)
|
||||
SourceVersion: $(Build.SourceVersion)
|
||||
|
||||
steps:
|
||||
- checkout: self
|
||||
path: s/Artemis
|
||||
@ -53,6 +57,13 @@ steps:
|
||||
artifactName: 'Artemis build'
|
||||
targetPath: '$(Build.ArtifactStagingDirectory)/build'
|
||||
|
||||
- task: FileTransform@1
|
||||
displayName: 'Populate buildinfo.json'
|
||||
inputs:
|
||||
folderPath: '$(Build.ArtifactStagingDirectory)/build'
|
||||
fileType: 'json'
|
||||
targetFiles: '**/buildinfo.json'
|
||||
|
||||
- task: PublishPipelineArtifact@1
|
||||
displayName: 'Upload build to Azure Pipelines'
|
||||
inputs:
|
||||
|
||||
@ -319,6 +319,11 @@
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Update="buildinfo.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Page Update="DefaultTypes\DataModel\Display\SKColorDataModelDisplayView.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
|
||||
6
src/Artemis.UI/buildinfo.json
Normal file
6
src/Artemis.UI/buildinfo.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"BuildId": 0,
|
||||
"BuildNumber": 0,
|
||||
"SourceBranch": "",
|
||||
"SourceVersion": ""
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user