Skip to content

Commit

Permalink
GitHub: Removed stable release from Azure Pipeline (#15003)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaira2 committed Mar 19, 2024
1 parent aea0e53 commit 9d3fa9f
Showing 1 changed file with 0 additions and 119 deletions.
119 changes: 0 additions & 119 deletions builds/azure-pipelines-release.yml
Expand Up @@ -48,125 +48,6 @@ variables:
value: '$(build.artifactStagingDirectory)\AppxPackages\\'

jobs:
### Stable release ###
- job: StableRelease
timeoutInMinutes: 120
steps:
- task: PowerShell@2
inputs:
targetType: 'inline'
script: |
[xml]$xmlDoc = Get-Content '$(Build.SourcesDirectory)\src\Files.App (Package)\Package.appxmanifest'
$xmlDoc.Package.Identity.Name="${{parameters.packageIdentityName}}"
$xmlDoc.Package.Identity.Publisher="Files"
$xmlDoc.Package.Properties.DisplayName="${{parameters.packageDisplayName}}"
$xmlDoc.Package.Applications.Application.VisualElements.DisplayName="${{parameters.packageDisplayName}}"
$xmlDoc.Save('$(Build.SourcesDirectory)\src\Files.App (Package)\Package.appxmanifest')
failOnStderr: true

# This replaces references to the dev icon with the stable icon variant
- task: PowerShell@2
displayName: 'Use Correct Logo'
inputs:
targetType: 'inline'
script: |
gci $(Build.SourcesDirectory)\src -Include *.csproj, *.appxmanifest, *.wapproj, *.xaml -recurse | ForEach -Process {
(Get-Content $_ -Raw | ForEach -Process {$_ -replace "Assets\\AppTiles\\Dev", "Assets\AppTiles\${{parameters.iconVariant}}"}) | Set-Content $_ -NoNewline
}
failOnStderr: true

- task: DownloadSecureFile@1
name: mapsDevKey
displayName: 'Download Bing Maps Dev Key'
inputs:
secureFile: 'BingMapsKey.txt'

# Adds the Bing maps token to the project
- task: CopyFiles@2
inputs:
SourceFolder: '$(Agent.TempDirectory)'
Contents: '$(mapsDevKey.secureFilePath)'
TargetFolder: '$(Build.SourcesDirectory)\src\Files.App\Resources'
overWrite: true

# Injects the AppCenter token to the project
- task: PowerShell@2
displayName: 'Inject AppCenter token'
inputs:
targetType: 'inline'
script: |
gci $(Build.SourcesDirectory)\src -Include *.cs -recurse | ForEach -Process {
(Get-Content $_ -Raw | ForEach -Process {$_ -replace "appcenter.secret", "$(appcenter.secret)"}) | Set-Content $_ -NoNewline
}
failOnStderr: true

# Injects the GitHub token to the project
- task: PowerShell@2
displayName: 'Inject AppCenter token'
inputs:
targetType: 'inline'
script: |
gci $(Build.SourcesDirectory)\src -Include *.cs -recurse | ForEach -Process {
(Get-Content $_ -Raw | ForEach -Process {$_ -replace "githubclientid.secret", "$(githubclientid.secret)"}) | Set-Content $_ -NoNewline
}
failOnStderr: true

- task: UseDotNet@2
inputs:
packageType: sdk
version: 8.0.x
includePreviewVersions: false

- task: CmdLine@2
inputs:
script: |
for /f %%a in ('dir /b /a:d %localappdata%\Microsoft\VisualStudio\17*') do echo UsePreviews=True>%localappdata%\Microsoft\VisualStudio\%%a\sdk.txt
- task: MSBuild@1
inputs:
platform: 'x64'
solution: '$(solution)'
configuration: '$(stableBuildConfiguration)'
msbuildArguments: '/t:restore /p:Configuration="$(stableBuildConfiguration)";Platform="$(buildPlatform)";PublishReadyToRun=true'
maximumCpuCount: true

- task: DownloadSecureFile@1
name: caCertificate
displayName: 'Download CA certificate'
inputs:
secureFile: '$(signingCert.secureFilePath)'

- task: MSBuild@1
inputs:
solution: '**/*.wapproj'
platform: 'x64'
configuration: '$(stableBuildConfiguration)'
msbuildArguments: '/t:build;_GenerateAppxPackage /p:AppxLogTelemetryFromSideloadingScript=False /p:GenerateAppInstallerFile=True /p:AppInstallerUri=https://cdn.files.community/files/${{parameters.releaseBranch}}/ /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=""'
maximumCpuCount: true

- task: CopyFiles@2
displayName: 'Copy Files to: $(build.artifactstagingdirectory)'
inputs:
SourceFolder: '$(system.defaultworkingdirectory)'
Contents: '**\bin\$(stableBuildConfiguration)\**'
TargetFolder: '$(build.artifactstagingdirectory)'

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: Sideload'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
ArtifactName: 'Sideload'
publishLocation: 'Container'

- task: AzureFileCopy@4
inputs:
SourcePath: '$(build.artifactstagingdirectory)\AppxPackages\*'
azureSubscription: 'azureconnection'
Destination: 'AzureBlob'
storage: 'filescommunity'
ContainerName: 'files'
BlobPrefix: '${{parameters.releaseBranch}}'

### Store release ###
- job: StoreRelease
timeoutInMinutes: 120
Expand Down

0 comments on commit 9d3fa9f

Please sign in to comment.