-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipeline-release.yml
46 lines (38 loc) · 1.09 KB
/
azure-pipeline-release.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
# https://aka.ms/yaml
pool:
name: 'Default'
variables:
buildConfiguration: 'Release'
nugetFeedUrl: 'https://www.nuget.org/packages/DevInstance.BlazorToolkit/'
steps:
# Step 1: Restore NuGet Packages
- task: NuGetToolInstaller@1 # Minimum required NuGet version: 4.8.0.5385+.
displayName: 'NuGet Tool Installer'
- task: NuGetAuthenticate@1
displayName: 'NuGet Authenticate'
- task: UseDotNet@2
displayName: 'Use .NET 8.x'
inputs:
version: 8.x
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '**/*.sln'
# Step 2: Build the Solution and pack NuGet Package
- task: VSBuild@1
inputs:
solution: '**/DevInstance.BlazorToolkit.csproj'
msbuildArgs: '/p:Configuration=$(buildConfiguration)'
# Step 3: Push NuGet Package
- task: NuGetCommand@2
inputs:
command: 'push'
feedsToUse: 'config'
includeNugetOrg: 'true'
# - task: NuGetCommand@2
# inputs:
# command: 'push'
# packagesToPush: '**/*.nupkg'
# nuGetFeedType: 'external'
# publishFeedCredentials: 'NugetCon'
# #feedPublishUrl: $(nugetFeedUrl)