@@ -117,3 +117,103 @@ jobs:
117117 storage : ' filescommunity'
118118 ContainerName : ' files'
119119 BlobPrefix : ' stable'
120+
121+ # ## Store release ###
122+ - job : StoreRelease
123+ timeoutInMinutes : 120
124+
125+ steps :
126+ - task : PowerShell@2
127+ inputs :
128+ targetType : ' inline'
129+ script : |
130+ [xml]$xmlDoc = Get-Content $(Build.SourcesDirectory)\src\Files.Package\Package.appxmanifest
131+ $xmlDoc.Package.Identity.Name="49306atecsolution.FilesUWP"
132+ $xmlDoc.Package.Identity.Publisher="CN=53EC4384-7F5B-4CF6-8C23-513FFE9D1AB7"
133+ $xmlDoc.Package.Properties.DisplayName="Files"
134+ $xmlDoc.Package.Applications.Application.VisualElements.DisplayName="Files"
135+ $xmlDoc.Save('$(Build.SourcesDirectory)\src\Files.Package\Package.appxmanifest')
136+ failOnStderr : true
137+
138+ - task : PowerShell@2
139+ displayName : ' Use Release Logo'
140+ inputs :
141+ targetType : ' inline'
142+ script : |
143+ gci $(Build.SourcesDirectory)\src -Include *.csproj, *.appxmanifest, *.wapproj -recurse | ForEach -Process {
144+ (Get-Content $_ -Raw | ForEach -Process {$_ -replace "Assets\\AppTilesDev", "Assets\AppTiles"}) | Set-Content $_ -NoNewline
145+ }
146+ failOnStderr : true
147+
148+ - task : DownloadSecureFile@1
149+ name : mapsDevKey
150+ displayName : ' Download Bing Maps Dev Key'
151+ inputs :
152+ secureFile : ' BingMapsKey.txt'
153+
154+ - task : CopyFiles@2
155+ inputs :
156+ SourceFolder : ' $(Agent.TempDirectory)'
157+ Contents : ' $(mapsDevKey.secureFilePath)'
158+ TargetFolder : ' $(Build.SourcesDirectory)\src\Files\Resources'
159+ overWrite : true
160+
161+ - task : NuGetToolInstaller@1
162+
163+ - task : NuGetCommand@2
164+ inputs :
165+ feedsToUse : config
166+ nugetConfigPath : nuget.config
167+ restoreSolution : ' $(solution)'
168+
169+ - task : DownloadSecureFile@1
170+ name : appCenterDevKey
171+ displayName : ' Download AppCenter Dev Key'
172+ inputs :
173+ secureFile : ' AppCenterKey.txt'
174+
175+ - task : CopyFiles@2
176+ inputs :
177+ SourceFolder : ' $(Agent.TempDirectory)'
178+ Contents : ' $(appCenterDevKey.secureFilePath)'
179+ TargetFolder : ' $(Build.SourcesDirectory)\src\Files\Resources'
180+ overWrite : true
181+
182+ - task : UseDotNet@2
183+ inputs :
184+ packageType : sdk
185+ version : 6.0.100
186+
187+ - task : MSBuild@1
188+ inputs :
189+ solution : ' **/*.wapproj'
190+ platform : ' x86'
191+ configuration : ' $(buildConfiguration)'
192+ msbuildArguments : ' /t:build;_GenerateAppxPackage /p:AppxBundlePlatforms="$(buildPlatform)" /p:AppxPackageDir="$(appxPackageDir)" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=StoreUpload'
193+ maximumCpuCount : true
194+
195+ - task : CopyFiles@2
196+ displayName : ' Copy Files to: $(build.artifactstagingdirectory)'
197+ inputs :
198+ SourceFolder : ' $(system.defaultworkingdirectory)'
199+ Contents : ' **\bin\$(BuildConfiguration)\**'
200+ TargetFolder : ' $(build.artifactstagingdirectory)'
201+
202+ - task : PublishBuildArtifacts@1
203+ displayName : ' Publish Artifact: Store'
204+ inputs :
205+ PathtoPublish : ' $(build.artifactstagingdirectory)'
206+ ArtifactName : ' Store'
207+ publishLocation : ' Container'
208+
209+ - task : store-flight@0
210+ inputs :
211+ serviceEndpoint : ' Files'
212+ appId : ' 9NGHP3DX8HDX'
213+ flightName : ' Files - Preview'
214+ packagePath : ' $(appxPackageDir)\**\*.msixupload'
215+ force : false
216+ skipPolling : false
217+ deletePackages : true
218+ numberOfPackagesToKeep : ' 5'
219+ isMandatoryUpdate : true
0 commit comments