File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -65,10 +65,9 @@ steps:
65
65
displayName : ' package into .vsix'
66
66
67
67
- powershell : |
68
- git status
69
- git show
70
- git log --oneline
71
- git push
68
+ .\scripts\git-package.ps1
69
+ env :
70
+ BUILD_REASON : $(Build.Reason)
72
71
displayName : " push updated package.json to remote git"
73
72
74
73
- task : CopyFiles@2
77
76
Contents : |
78
77
**\*.vsix
79
78
**\package.json
79
+ **\images\ManagementTools_CloudFormation.png
80
80
TargetFolder : ' $(Build.ArtifactStagingDirectory)'
81
+ flattenFolders : false
81
82
82
83
- task : PublishBuildArtifacts@1
83
84
displayName : ' Publish Artifact'
Original file line number Diff line number Diff line change
1
+ # Write package.json back to github only for release builds
2
+
3
+ write-host " [info] Build reason is: $env: BUILD_REASON "
4
+
5
+ if ($env: BUILD_REASON -eq " Schedule" ) {
6
+ # write package.json back to repo
7
+ git show
8
+ git log -- oneline
9
+ git push
10
+ }
11
+ else {
12
+ # do nothing
13
+ write-host " [info] this is not a scheduled build. Build reason is $env: BUILD_REASON "
14
+ }
You can’t perform that action at this time.
0 commit comments