11# Build the ColorPicker project utilizing npm and MSBuild
22# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
3+ name : $(BuildVersionMajor).$(BuildVersionMinor).$(BuildVersionPatch).$(BuildVersionRevision)
34
45trigger :
56- master
67
8+ variables :
9+ # BUILD VERSION INFORMATION
10+ BuildVersionMajor : 1
11+ BuildVersionMinor : 1
12+ BuildVersionPatch : 0
13+ # sets a counter for the version number changing the Major or Minor version will reset this counter
14+ # back to it's seed value
15+ BuildVersionRevision : $[counter(format('{0}.{1}.{2}', variables['BuildVersionMajor'], variables['BuildVersionMinor'],variables['BuildVersionPatch']), 1)]
16+
717pool :
818 vmImage : ' vs2017-win2016'
919
@@ -21,6 +31,11 @@ steps:
2131 command : ' install'
2232 workingDir : ' ./BooleanOptionset/'
2333
34+ - task : Npm@1
35+ inputs :
36+ command : ' install'
37+ workingDir : ' ./BingMapsGrid/'
38+
2439# PowerApps controls can be build using MSBuild and do not require the PCF CLI to be downloaded.
2540# The build command will utilize NuGet to go out and get all the resource packages it needs.
2641- task : MSBuild@1
@@ -41,9 +56,28 @@ steps:
4156 Contents : ' BooleanOptionsetControl.zip'
4257 TargetFolder : ' $(Build.ArtifactStagingDirectory)'
4358
59+ - task : CopyFiles@2
60+ inputs :
61+ SourceFolder : ' ./BingMapsGrid/BingMapsGrid/BingMapsGridControl/bin/Debug/'
62+ Contents : ' BingMapsGridControl.zip'
63+ TargetFolder : ' $(Build.ArtifactStagingDirectory)'
64+
4465# Publish the build artifacts.
4566- task : PublishBuildArtifacts@1
4667 inputs :
4768 PathtoPublish : ' $(Build.ArtifactStagingDirectory)'
4869 ArtifactName : ' drop'
4970 publishLocation : ' Container'
71+
72+ # GitHub Release
73+ - task : GitHubRelease@1
74+ inputs :
75+ gitHubConnection : ' github.com_rwilson504'
76+ repositoryName : ' rwilson504/PCFControls'
77+ action : ' create'
78+ target : ' $(Build.SourceVersion)'
79+ tagSource : ' userSpecifiedTag'
80+ tag : ' $(Build.BuildNumber)'
81+ title : ' $(Build.BuildNumber)'
82+ changeLogCompareToRelease : ' lastFullRelease'
83+ changeLogType : ' commitBased'
0 commit comments