Skip to content

Commit 8c0341f

Browse files
committed
Set up CI with Azure Pipelines
[skip ci]
1 parent 10b9e81 commit 8c0341f

File tree

1 file changed

+91
-0
lines changed

1 file changed

+91
-0
lines changed

azure-pipelines.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# ASP.NET
2+
# Build and test ASP.NET projects.
3+
# Add steps that publish symbols, save build artifacts, deploy, and more:
4+
# https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4
5+
6+
7+
trigger:
8+
- master
9+
10+
pool:
11+
vmImage: 'windows-latest'
12+
13+
variables:
14+
solution: '**/Senparc.Weixin.AI.sln'
15+
buildPlatform: 'Any CPU'
16+
buildConfiguration: 'Release'
17+
MSBuildSDKsPath: 'C:\\hostedtoolcache\\windows\\dotnet\\sdk\\6.0.407\\Sdks'
18+
19+
steps:
20+
21+
- task: UseDotNet@2
22+
displayName: 'Use .NET SDK 6'
23+
inputs:
24+
version: '6.0.407'
25+
packageType: 'sdk'
26+
performMultiLevelLookup: true
27+
includePreviewVersions: true
28+
29+
- task: DotNetCoreCLI@2
30+
displayName: 'dotnet --list-sdks '
31+
inputs:
32+
command: custom
33+
custom: '--list-sdks '
34+
35+
36+
- task: NuGetToolInstaller@1
37+
displayName: 'Use NuGet 6.3.0'
38+
inputs:
39+
versionSpec: '6.3.0'
40+
checkLatest: true
41+
42+
43+
- task: NuGetCommand@2
44+
inputs:
45+
command: 'restore'
46+
restoreSolution: '**/Senparc.Weixin.AI.sln'
47+
feedsToUse: 'config'
48+
externalFeedCredentials: 'nuget-jeffrey-full-key'
49+
50+
- task: DotNetCoreCLI@2
51+
displayName: Build
52+
inputs:
53+
command: build
54+
projects: '**/Senparc.Weixin.AI.sln'
55+
arguments: '--configuration Release'
56+
57+
- task: NuGetCommand@2
58+
displayName: Senparc.AI -V0
59+
inputs:
60+
command: push
61+
packagesToPush: '**/Senparc.Weixin.AI.0.*.nupkg'
62+
nuGetFeedType: external
63+
publishFeedCredentials: 'nuget-jeffrey-full-key'
64+
continueOnError: true
65+
condition: succeededOrFailed()
66+
67+
- task: NuGetCommand@2
68+
displayName: 'Senparc.Weixin.AI -V0 - Symbol'
69+
inputs:
70+
command: push
71+
packagesToPush: '**/Senparc.Weixin.AI.0.*.snupkg'
72+
nuGetFeedType: external
73+
publishFeedCredentials: 'nuget-jeffrey-full-key'
74+
continueOnError: true
75+
condition: succeededOrFailed()
76+
77+
- task: DotNetCoreCLI@2
78+
displayName: Publish
79+
inputs:
80+
command: publish
81+
publishWebProjects: True
82+
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
83+
zipAfterPublish: True
84+
enabled: false
85+
86+
- task: PublishBuildArtifacts@1
87+
displayName: 'Publish Artifact'
88+
inputs:
89+
PathtoPublish: '$(build.artifactstagingdirectory)'
90+
enabled: false
91+
condition: succeededOrFailed()

0 commit comments

Comments
 (0)