@@ -79,12 +79,23 @@ jobs:
79
79
# set -eux
80
80
# scons tests godot_args="--verbose --video-driver GLES2"
81
81
# displayName: 'Run tests'
82
- - bash : |
82
+ - powershell : |
83
83
scons release
84
- mkdir export && cp build/godot-python-*.zip export
84
+ cp build/godot-python-*.zip $(Build.ArtifactStagingDirectory)
85
85
displayName: 'Generate artifact archive'
86
- - publish : export/
87
- artifact : $(PLATFORM)_build
86
+ - task : GithubRelease@0
87
+ condition : and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
88
+ inputs :
89
+ gitHubConnection : ' github.com_touilleMan'
90
+ repositoryName : ' touilleMan/godot-python'
91
+ action : ' edit'
92
+ target : ' $(build.sourceVersion)'
93
+ tagSource : ' manual'
94
+ tag : ' $(Build.SourceBranchName)'
95
+ assets : ' $(Build.ArtifactStagingDirectory)/godot-python-*.zip'
96
+ title : ' $(Build.SourceBranchName)'
97
+ assetUploadMode : ' replace'
98
+ addChangeLog : false
88
99
89
100
90
101
# ################################################################################
@@ -123,11 +134,23 @@ jobs:
123
134
# scons tests
124
135
# displayName: 'Run tests'
125
136
- bash : |
137
+ set -eux
126
138
scons release
127
- mkdir export && cp build/godot-python-*.zip export
139
+ cp build/godot-python-*.zip $(Build.ArtifactStagingDirectory)/
128
140
displayName: 'Generate artifact archive'
129
- - publish : export/
130
- artifact : $(PLATFORM)_build
141
+ - task : GithubRelease@0
142
+ condition : and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
143
+ inputs :
144
+ gitHubConnection : ' github.com_touilleMan'
145
+ repositoryName : ' touilleMan/godot-python'
146
+ action : ' edit'
147
+ target : ' $(build.sourceVersion)'
148
+ tagSource : ' manual'
149
+ tag : ' $(Build.SourceBranchName)'
150
+ assets : ' $(Build.ArtifactStagingDirectory)/godot-python-*.zip'
151
+ title : ' $(Build.SourceBranchName)'
152
+ assetUploadMode : ' replace'
153
+ addChangeLog : false
131
154
132
155
133
156
# ################################################################################
@@ -172,8 +195,20 @@ jobs:
172
195
# scons tests
173
196
# displayName: 'Run tests'
174
197
- bash : |
198
+ set -eux
175
199
scons release
176
- mkdir export && cp build/godot-python-*.zip export
200
+ cp build/godot-python-*.zip $(Build.ArtifactStagingDirectory)/
177
201
displayName: 'Generate artifact archive'
178
- - publish : export/
179
- artifact : $(PLATFORM)_build
202
+ - task : GithubRelease@0
203
+ condition : and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
204
+ inputs :
205
+ gitHubConnection : ' github.com_touilleMan'
206
+ repositoryName : ' touilleMan/godot-python'
207
+ action : ' edit'
208
+ target : ' $(build.sourceVersion)'
209
+ tagSource : ' manual'
210
+ tag : ' $(Build.SourceBranchName)'
211
+ assets : ' $(Build.ArtifactStagingDirectory)/godot-python-*.zip'
212
+ title : ' $(Build.SourceBranchName)'
213
+ assetUploadMode : ' replace'
214
+ addChangeLog : false
0 commit comments