-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
44 lines (41 loc) · 1.26 KB
/
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
39
40
41
42
43
44
trigger:
paths:
include:
- azure-pipelines.yml
- AzureDevOpsMigrationTest/*
variables:
- group: "version"
stages:
- stage:
displayName: BuildTestPublish
condition: always()
jobs:
- job: BuildTestPublish
pool:
vmImage: "ubuntu-latest"
steps:
- task: UseDotNet@2
displayName: Install .NET Core 7 SDK
inputs:
packageType: 'sdk'
version: '7.0.x'
- task: DotNetCoreCLI@2
displayName: Restore Projects
inputs:
command: restore
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
arguments: '--no-restore --configuration Release'
- task: DotNetCoreCLI@2
displayName: Publish App
inputs:
command: publish
publishWebProjects: false
arguments: '--no-build --configuration Release --output $(Build.ArtifactStagingDirectory)'
zipAfterPublish: True
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'AzureDevOpsMigrationTest.$(Build.BuildNumber)'