mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +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:
|
variables:
|
||||||
artemisSolution: '**/Artemis.sln'
|
artemisSolution: '**/Artemis.sln'
|
||||||
NUGET_PACKAGES: $(Pipeline.Workspace)/.nuget/packages
|
NUGET_PACKAGES: $(Pipeline.Workspace)/.nuget/packages
|
||||||
|
BuildId: $(Build.BuildId)
|
||||||
|
BuildNumber: $(Build.BuildNumber)
|
||||||
|
SourceBranch: $(Build.SourceBranch)
|
||||||
|
SourceVersion: $(Build.SourceVersion)
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
path: s/Artemis
|
path: s/Artemis
|
||||||
@ -53,6 +57,13 @@ steps:
|
|||||||
artifactName: 'Artemis build'
|
artifactName: 'Artemis build'
|
||||||
targetPath: '$(Build.ArtifactStagingDirectory)/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
|
- task: PublishPipelineArtifact@1
|
||||||
displayName: 'Upload build to Azure Pipelines'
|
displayName: 'Upload build to Azure Pipelines'
|
||||||
inputs:
|
inputs:
|
||||||
|
|||||||
@ -319,6 +319,11 @@
|
|||||||
<DependentUpon>Resources.resx</DependentUpon>
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<None Update="buildinfo.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Page Update="DefaultTypes\DataModel\Display\SKColorDataModelDisplayView.xaml">
|
<Page Update="DefaultTypes\DataModel\Display\SKColorDataModelDisplayView.xaml">
|
||||||
<SubType>Designer</SubType>
|
<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