2020-05-25 23:44:43 +03:00
|
|
|
jobs:
|
|
|
|
- job: VS_Latest
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-latest'
|
|
|
|
|
2018-07-11 15:47:03 +03:00
|
|
|
steps:
|
2020-05-25 23:44:43 +03:00
|
|
|
|
|
|
|
- task: UseDotNet@2
|
2024-10-26 04:57:30 +03:00
|
|
|
displayName: 'Use .NET SDK'
|
2018-07-11 15:47:03 +03:00
|
|
|
inputs:
|
2024-10-26 04:57:30 +03:00
|
|
|
version: 9.0.100-rc.2.24474.11
|
|
|
|
includePreviewVersions: true
|
2018-07-11 15:47:03 +03:00
|
|
|
|
2020-05-25 23:44:43 +03:00
|
|
|
- task: nventiveCanaryUpdater@5
|
|
|
|
displayName: 'Canary Update'
|
|
|
|
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries')
|
2018-07-11 15:47:03 +03:00
|
|
|
inputs:
|
2018-07-11 15:49:55 +03:00
|
|
|
solution: Quoter.sln
|
2020-05-25 23:44:43 +03:00
|
|
|
branchToMerge: uno
|
|
|
|
summaryFile: '$(Build.ArtifactStagingDirectory)/Canary.md'
|
|
|
|
resultFile: '$(Build.ArtifactStagingDirectory)/result.json'
|
|
|
|
nugetUpdaterVersion: 2.0.6
|
|
|
|
packageAuthor: nventive
|
2018-07-11 15:47:03 +03:00
|
|
|
|
2024-10-26 05:01:28 +03:00
|
|
|
|
|
|
|
- task: gitversion/setup@0
|
|
|
|
retryCountOnTaskFailure: 3
|
|
|
|
inputs:
|
|
|
|
versionSpec: '5.10.3'
|
|
|
|
|
|
|
|
- task: gitversion/execute@0
|
|
|
|
retryCountOnTaskFailure: 3
|
2018-07-11 15:47:03 +03:00
|
|
|
inputs:
|
2024-10-26 05:01:28 +03:00
|
|
|
updateAssemblyInfo: 'False'
|
2020-05-25 23:44:43 +03:00
|
|
|
useConfigFile: true
|
|
|
|
configFilePath: gitversion.yml
|
2024-10-26 05:01:28 +03:00
|
|
|
displayName: Use GitVersion
|
2020-05-25 23:44:43 +03:00
|
|
|
|
|
|
|
- script: |
|
2024-10-26 05:03:48 +03:00
|
|
|
dotnet publish -f net9.0-browserwasm $(build.sourcesdirectory)/src/uno/RoslynQuoter/RoslynQuoterApp.csproj "/p:InformationalVersion=$GITVERSION_INFORMATIONALVERSION"
|
2020-05-25 23:44:43 +03:00
|
|
|
|
|
|
|
env:
|
|
|
|
GITVERSION_FullSemVer: $(GITVERSION_FullSemVer)
|
2024-10-26 04:57:30 +03:00
|
|
|
displayName: 'Build'
|
2018-07-11 15:47:03 +03:00
|
|
|
|
2018-07-11 15:49:55 +03:00
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
displayName: Publish Package Artifacts
|
|
|
|
inputs:
|
2024-10-26 05:29:46 +03:00
|
|
|
pathToPublish: $(build.sourcesdirectory)/src/uno/RoslynQuoter/bin/Release/net9.0-browserwasm/publish/wwwroot
|
2018-07-11 15:49:55 +03:00
|
|
|
artifactType: container
|
2018-07-11 16:34:14 +03:00
|
|
|
artifactName: RoslynQuoter-Wasm
|