-
Notifications
You must be signed in to change notification settings - Fork 63
/
azure-pipelines-photino.blazor-dev.yml
49 lines (39 loc) · 1.66 KB
/
azure-pipelines-photino.blazor-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Build Photino.Blazor project from dev branch in GitHub
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
trigger:
- debug
variables:
versionprefix: 0.9.0
jobs:
- job: "BuildPackageAndPublish"
pool:
vmImage: windows-latest
variables:
buildConfiguration: "Debug"
steps:
- task: UseDotNet@2
displayName: "Use .NET 8 sdk"
inputs:
packageType: sdk
version: "8.0.x"
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: CmdLine@2
displayName: "Add NuGet source"
inputs:
script: "dotnet nuget add source https://pkgs.dev.azure.com/tryphotino/Photino.Native/_packaging/PhotinoPackages/nuget/v3/index.json -n DevOpsArtifacts"
- task: NuGetAuthenticate@1
displayName: "NuGet Authenticate"
#Build and Create NuGet package
- task: CmdLine@2
displayName: "Build and Create NuGet package"
inputs:
script: "dotnet pack Photino.Blazor/Photino.Blazor.csproj -c $(buildConfiguration) --include-symbols /p:Version=$(versionprefix)-dev-$(Build.BuildNumber) /p:PackageVersion=$(versionprefix)-dev-$(Build.BuildNumber)"
#Publish NuGet package to Artifacts
- task: NuGetCommand@2
displayName: "NuGet push"
inputs:
command: push
feedsToUse: "select"
publishVstsFeed: "Photino.Native/PhotinoPackages"
packagesToPush: "Photino.Blazor/bin/$(buildConfiguration)/*.nupkg"
allowPackageConflicts: true