forked from EdiWang/Moonglade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
38 lines (34 loc) · 881 Bytes
/
azure-pipelines.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
trigger:
branches:
include:
- master
paths:
include:
- src/**
jobs:
- job: ASPNETCore
pool:
vmImage: 'windows-latest'
steps:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '6.0.x'
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '**/*.sln'
arguments: '--configuration Release -p:SourceRevisionId=$(Build.SourceVersion)'
- task: DotNetCoreCLI@2
displayName: Publish
inputs:
command: publish
publishWebProjects: True
arguments: '--configuration Release -p:SourceRevisionId=$(Build.SourceVersion) --no-build --output $(Build.ArtifactStagingDirectory)'
zipAfterPublish: True
- task: PublishBuildArtifacts@1
displayName: Copy to Drop
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'Drop'