@@ -142,26 +142,62 @@ Task("Test")
142
142
143
143
Task( "Publish-CI" )
144
144
. IsDependentOn ( "Publish-AppVeyor" )
145
- . IsDependentOn ( "Publish-AzurePipeline" ) ;
145
+ . IsDependentOn ( "Publish-AzurePipeline" )
146
+ . Finally ( ( ) =>
147
+ {
148
+ if ( publishingError )
149
+ {
150
+ throw new Exception ( "An error occurred during the publishing of GitVersion." ) ;
151
+ }
152
+ } ) ;
146
153
147
154
Task( "Publish-Gem" )
148
- . IsDependentOn ( "Publish-Gem-Internal" ) ;
155
+ . IsDependentOn ( "Publish-Gem-Internal" )
156
+ . Finally ( ( ) =>
157
+ {
158
+ if ( publishingError )
159
+ {
160
+ throw new Exception ( "An error occurred during the publishing of GitVersion." ) ;
161
+ }
162
+ } ) ;
149
163
150
164
Task( "Publish-NuGet" )
151
- . IsDependentOn ( "Publish-NuGet-Internal" ) ;
165
+ . IsDependentOn ( "Publish-NuGet-Internal" )
166
+ . Finally ( ( ) =>
167
+ {
168
+ if ( publishingError )
169
+ {
170
+ throw new Exception ( "An error occurred during the publishing of GitVersion." ) ;
171
+ }
172
+ } ) ;
152
173
153
174
Task( "Publish-Chocolatey" )
154
- . IsDependentOn ( "Publish-Chocolatey-Internal" ) ;
175
+ . IsDependentOn ( "Publish-Chocolatey-Internal" )
176
+ . Finally ( ( ) =>
177
+ {
178
+ if ( publishingError )
179
+ {
180
+ throw new Exception ( "An error occurred during the publishing of GitVersion." ) ;
181
+ }
182
+ } ) ;
155
183
156
184
Task( "Publish-Documentation" )
157
- . IsDependentOn ( "Publish-Documentation-Internal" ) ;
185
+ . IsDependentOn ( "Publish-Documentation-Internal" )
186
+ . Finally ( ( ) =>
187
+ {
188
+ if ( publishingError )
189
+ {
190
+ throw new Exception ( "An error occurred during the publishing of GitVersion." ) ;
191
+ }
192
+ } ) ;
158
193
159
194
Task( "Publish" )
160
- . IsDependentOn ( "Publish-CI" )
161
- . IsDependentOn ( "Publish-NuGet" )
162
- . IsDependentOn ( "Publish-Chocolatey" )
163
- . IsDependentOn ( "Publish-Gem" )
164
- . IsDependentOn ( "Publish-Documentation" )
195
+ . IsDependentOn ( "Publish-AppVeyor" )
196
+ . IsDependentOn ( "Publish-AzurePipeline" )
197
+ . IsDependentOn ( "Publish-NuGet-Internal" )
198
+ . IsDependentOn ( "Publish-Chocolatey-Internal" )
199
+ . IsDependentOn ( "Publish-Gem-Internal" )
200
+ . IsDependentOn ( "Publish-Documentation-Internal" )
165
201
. Finally ( ( ) =>
166
202
{
167
203
if ( publishingError )
0 commit comments