-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
47 lines (43 loc) · 1.02 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
45
46
47
trigger:
branches:
include:
- main
pr:
branches:
include:
- main
pool:
vmImage: 'ubuntu-latest'
variables:
Runtime: 'linux-x64'
steps:
- task: UseDotNet@2
inputs:
version: '8.x'
- task: DotNetCoreCLI@2
name: Restore
inputs:
command: 'restore'
projects: 'src/**/Generator.fsproj'
arguments: '-r $(Runtime)'
- task: DotNetCoreCLI@2
name: Build
inputs:
command: 'build'
configuration: 'Release'
projects: 'src/**/Generator.fsproj'
arguments: '-r $(Runtime) -c Release'
publishWebProjects: false
- task: DotNetCoreCLI@2
name: Publish
inputs:
command: 'publish'
configuration: 'Release'
projects: 'src/**/Generator.fsproj'
arguments: '-r $(Runtime) -o $(Build.ArtifactStagingDirectory) /p:InformationalVersion=$(Build.BuildNumber)'
publishWebProjects: false
- task: PublishBuildArtifacts@1
name: Pack
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'