Uno.Gallery/build/stage-build-windows.yml

48 строки
1.6 KiB
YAML

steps:
- task: UseDotNet@2
condition: eq(variables['IsCanaryBranch'], true)
retryCountOnTaskFailure: 3
inputs:
packageType: runtime
version: 6.0.0
- template: templates/canary-updater.yml
- template: templates/gitversion.yml
- task: UseDotNet@2
displayName: 'Use .NET'
inputs:
packageType: 'sdk'
version: '8.0.100'
- script: |
cd $(build.sourcesdirectory)/Uno.Gallery
dotnet publish -c Release -f net8.0-windows10.0.19041 -p:TargetFrameworkOverride=net8.0-windows10.0.19041 /p:Platform=$(ApplicationPlatform) /p:AppxPackageDir="Packages/" /p:AppxBundle=Never /p:UapAppxPackageBuildMode=SideloadOnly /p:GenerateAppxPackageOnBuild=true /bl:$(build.artifactstagingdirectory)/build.binlog "/p:InformationalVersion=$(GitVersion.InformationalVersion)"
displayName: Build project for Release
- task: CopyFiles@2
displayName: Copy Windows output
inputs:
SourceFolder: $(build.sourcesdirectory)/Uno.Gallery/Packages
Contents: '**/*.*'
TargetFolder: $(Build.ArtifactStagingDirectory)/
- task: PowerShell@2
displayName: Authenticode Sign Packages
inputs:
filePath: build/Sign-Package.ps1
env:
SignClientUser: $(SignClientUser)
SignClientSecret: $(SignClientSecret)
SignPackageName: "Uno Platform Gallery"
SignPackageDescription: "The Uno Platform"
ArtifactDirectory: $(build.artifactstagingdirectory)
condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))
- task: PublishBuildArtifacts@1
condition: always()
retryCountOnTaskFailure: 3
inputs:
ArtifactName: windows