-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathazure-pipelines.yml
41 lines (32 loc) · 1.05 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
trigger:
- main
jobs:
- job: BuildApplication
pool:
vmImage: ubuntu-latest
variables:
BUILD_ARTIFACT_PATH: $(Build.ArtifactStagingDirectory)
steps:
- task: UseDotNet@2
displayName: Install .NET 6 SDK
inputs:
version: 6.0.x
- task: UseDotNet@2
displayName: Install .NET 8 SDK
inputs:
version: 8.0.x
- script: dotnet --info
displayName: .NET info
- script: dotnet restore
displayName: Install dependencies
- script: dotnet build --no-restore -c Release /p:ContinuousIntegrationBuild=true -bl:$(BUILD_ARTIFACT_PATH)/msbuild-build.binlog
displayName: Build
- script: dotnet test --no-restore /p:SkipBuildVersioning=true
displayName: Test
- script: dotnet pack --no-build -c Release /p:PackageOutputPath=$(BUILD_ARTIFACT_PATH) /p:ContinuousIntegrationBuild=true -bl:$(BUILD_ARTIFACT_PATH)/msbuild-pack.binlog
displayName: Pack
- task: PublishBuildArtifacts@1
displayName: Publish artifacts
inputs:
ArtifactName: BuildVersioning
pathToPublish: $(BUILD_ARTIFACT_PATH)