Skip to content

Commit 78ed132

Browse files
committed
Set up CI with Azure Pipelines
[skip ci]
1 parent 4fe9ac3 commit 78ed132

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

azure-pipelines-release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
trigger: none
2+
pr: none
3+
4+
pool:
5+
vmImage: 'windows-latest'
6+
7+
variables:
8+
solution: '**/*.sln'
9+
buildPlatform: 'x86|x64'
10+
buildConfiguration: 'Release'
11+
appxPackageDir: '$(build.artifactStagingDirectory)\AppxPackages\\'
12+
13+
steps:
14+
- task: PowerShell@2
15+
inputs:
16+
targetType: 'inline'
17+
script: |
18+
[xml]$xmlDoc = Get-Content $(Build.SourcesDirectory)\Files.Package\Package.appxmanifest
19+
$xmlDoc.Package.Identity.Name="49306atecsolution.FilesUWP"
20+
$xmlDoc.Package.Properties.DisplayName="Files UWP - Preview"
21+
$xmlDoc.Package.Applications.Application.VisualElements.DisplayName="Files UWP - Preview"
22+
$xmlDoc.Save('$(Build.SourcesDirectory)\Files.Package\Package.appxmanifest')
23+
failOnStderr: true
24+
25+
- task: NuGetToolInstaller@1
26+
27+
- task: NuGetCommand@2
28+
inputs:
29+
restoreSolution: '$(solution)'
30+
31+
- task: MSBuild@1
32+
inputs:
33+
platform: 'x86'
34+
solution: '**/*.wapproj'
35+
configuration: '$(buildConfiguration)'
36+
msbuildArguments: '/t:build;_GenerateAppxPackage /p:AppxBundlePlatforms="$(buildPlatform)" /p:AppxPackageDir="$(appxPackageDir)" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload'
37+
38+
- task: store-flight@0
39+
inputs:
40+
serviceEndpoint: 'Files'
41+
appId: '9NGHP3DX8HDX'
42+
flightName: 'Files UWP Fast Ring'
43+
packagePath: '$(appxPackageDir)\**\*.msixupload'
44+
force: false
45+
skipPolling: false

0 commit comments

Comments
 (0)