File tree Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Expand file tree Collapse file tree 2 files changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ pool :
2
+ vmImage : ' Ubuntu-16.04'
3
+ demands :
4
+ - npm
5
+
6
+ variables :
7
+ wwwrootDir : ' Tailspin.SpaceGame.Web/wwwroot'
8
+
9
+ steps :
10
+ - task : Npm@1
11
+ displayName : ' npm install'
12
+ inputs :
13
+ verbose : false
14
+
15
+ - script : ' ./node_modules/.bin/node-sass $(wwwrootDir) --output $(wwwrootDir)'
16
+ displayName : ' node-sass $(wwwrootDir)'
17
+
18
+ - task : gulp@1
19
+ displayName : ' gulp'
20
+
21
+ - script : ' echo "$(Build.DefinitionName), $(Build.BuildId), $(Build.BuildNumber)" > buildinfo.txt'
22
+ workingDirectory : $(wwwrootDir)
23
+ displayName : ' output build info'
24
+
25
+ - task : DotNetCoreCLI@2
26
+ inputs :
27
+ command : ' restore'
28
+ projects : ' **/*.csproj'
29
+
30
+ - template : templates/build.yml
31
+ parameters :
32
+ buildConfiguration : ' Debug'
33
+
34
+ - template : templates/build.yml
35
+ parameters :
36
+ buildConfiguration : ' Release'
37
+
38
+ - task : PublishBuildArtifacts@1
39
+ condition : succeeded()
40
+ displayName : ' Publish Artifact: drop'
Original file line number Diff line number Diff line change
1
+ parameters :
2
+ buildConfiguration : ' Release'
3
+
4
+ steps :
5
+ - task : DotNetCoreCLI@2
6
+ displayName : ' dotnet build ${{ parameters.buildConfiguration }}'
7
+ inputs :
8
+ command : ' build'
9
+ arguments : ' --no-restore --configuration ${{ parameters.buildConfiguration }}'
10
+ projects : ' **/*.csproj'
11
+
12
+ - task : DotNetCoreCLI@2
13
+ displayName : ' dotnet publish ${{ parameters.buildConfiguration }}'
14
+ inputs :
15
+ command : ' publish'
16
+ projects : ' **/*.csproj'
17
+ publishWebProjects : true
18
+ arguments : ' --no-restore --configuration ${{ parameters.buildConfiguration }} --output $(Build.ArtifactStagingDirectory)/${{ parameters.BuildConfiguration }}'
19
+ zipAfterPublish : true
You can’t perform that action at this time.
0 commit comments