Skip to content

Commit 606a815

Browse files
authored
Update azure-pipelines-release.yml
1 parent 8d83078 commit 606a815

File tree

1 file changed

+103
-3
lines changed

1 file changed

+103
-3
lines changed

builds/azure-pipelines-release.yml

Lines changed: 103 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
inputs:
5353
SourceFolder: '$(Agent.TempDirectory)'
5454
Contents: '$(mapsDevKey.secureFilePath)'
55-
TargetFolder: '$(Build.SourcesDirectory)\Files\Resources'
55+
TargetFolder: '$(Build.SourcesDirectory)\src\Files.Uwp\Resources'
5656
overWrite: true
5757

5858
- task: DownloadSecureFile@1
@@ -65,7 +65,7 @@ jobs:
6565
inputs:
6666
SourceFolder: '$(Agent.TempDirectory)'
6767
Contents: '$(appCenterDevKey.secureFilePath)'
68-
TargetFolder: '$(Build.SourcesDirectory)\Files\Resources'
68+
TargetFolder: '$(Build.SourcesDirectory)\src\Files.Uwp\Resources'
6969
overWrite: true
7070

7171
- task: UseDotNet@2
@@ -92,7 +92,7 @@ jobs:
9292
solution: '**/*.wapproj'
9393
platform: 'x86'
9494
configuration: '$(buildConfiguration)'
95-
msbuildArguments: '/t:build;_GenerateAppxPackage /p:AppxLogTelemetryFromSideloadingScript=False /p:GenerateAppInstallerFile=True /p:AppInstallerUri=https://filescommunity.blob.core.windows.net/files/stable/ /p:AppInstallerCheckForUpdateFrequency=OnApplicationRun /p:AppInstallerUpdateFrequency=1 /p:AppxBundlePlatforms="$(buildPlatform)" /p:AppxPackageDir="$(appxPackageDir)" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=Sideload /p:AppxPackageSigningEnabled=true /p:PackageCertificateKeyFile="$(caCertificate.secureFilePath)" /p:PackageCertificatePassword="$(signingCert.password)" /p:PackageCertificateThumbprint=""'
95+
msbuildArguments: '/t:build;_GenerateAppxPackage /p:AppxLogTelemetryFromSideloadingScript=False /p:GenerateAppInstallerFile=True /p:AppInstallerUri=https://cdn.files.community/files/stable/ /p:AppInstallerCheckForUpdateFrequency=OnApplicationRun /p:AppInstallerUpdateFrequency=1 /p:AppxBundlePlatforms="$(buildPlatform)" /p:AppxPackageDir="$(appxPackageDir)" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=Sideload /p:AppxPackageSigningEnabled=true /p:PackageCertificateKeyFile="$(caCertificate.secureFilePath)" /p:PackageCertificatePassword="$(signingCert.password)" /p:PackageCertificateThumbprint=""'
9696
maximumCpuCount: true
9797

9898
- task: CopyFiles@2
@@ -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.Uwp\Resources'
159+
overWrite: true
160+
161+
- task: DownloadSecureFile@1
162+
name: appCenterDevKey
163+
displayName: 'Download AppCenter Dev Key'
164+
inputs:
165+
secureFile: 'AppCenterKey.txt'
166+
167+
- task: CopyFiles@2
168+
inputs:
169+
SourceFolder: '$(Agent.TempDirectory)'
170+
Contents: '$(appCenterDevKey.secureFilePath)'
171+
TargetFolder: '$(Build.SourcesDirectory)\src\Files.Uwp\Resources'
172+
overWrite: true
173+
174+
- task: UseDotNet@2
175+
inputs:
176+
packageType: sdk
177+
version: 6.0.100
178+
179+
- task: NuGetToolInstaller@1
180+
181+
- task: NuGetCommand@2
182+
inputs:
183+
feedsToUse: config
184+
nugetConfigPath: nuget.config
185+
restoreSolution: '$(solution)'
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

Comments
 (0)