@@ -56,10 +56,15 @@ before_build:
5656
5757
5858 IF NOT DEFINED APPVEYOR_PULL_REQUEST_NUMBER (
59+
5960 ECHO "APPVEYOR_PULL_REQUEST_NUMBER is null, downloading credentials to %CREDENTIALS_DIRECTORY%"
61+
6062 git clone https://github.ibm.com/germanatt/sdk-credentials.git %CREDENTIALS_DIRECTORY%
63+
6164 ) ELSE (
65+
6266 ECHO "APPVEYOR_PULL_REQUEST_NUMBER is %APPVEYOR_PULL_REQUEST_NUMBER% - skip cloning credentials"
67+
6368 )
6469
6570
@@ -247,32 +252,59 @@ after_test:
247252
248253
249254 IF NOT BRANCH_NAME=="master" (
255+
250256 ECHO "BRANCH_NAME is master"
257+
251258 IF NOT DEFINED APPVEYOR_PULL_REQUEST_NUMBER (
259+
252260 ECHO "APPVEYOR_PULL_REQUEST_NUMBER is not defined, running semantic release"
261+
253262263+
254264 ) ELSE (
265+
255266 ECHO "APPVEYOR_PULL_REQUEST_NUMBER is %APPVEYOR_PULL_REQUEST_NUMBER%, not running semantic release"
267+
256268 )
269+
257270 ) ELSE (
271+
258272 ECHO "BRANCH_NAME is not master - BRANCH_NAME is %BRANCH_NAME%, not running semantic release"
273+
259274 IF BRANCH_NAME==%APPVEYOR_REPO_TAG_NAME% (
275+
260276 ECHO "BRANCH_NAME is a tag is %APPVEYOR_PULL_REQUEST_NUMBER%. Building Nuget packages"
277+
261278 dotnet pack .\src\IBM.Watson.Assistant.v1\IBM.Watson.Assistant.v1.csproj --configuration Release
279+
262280 dotnet pack .\src\IBM.Watson.Assistant.v2\IBM.Watson.Assistant.v2.csproj --configuration Release
281+
263282 dotnet pack .\src\IBM.Watson.CompareComply.v1\IBM.Watson.CompareComply.v1.csproj --configuration Release
283+
264284 dotnet pack .\src\IBM.Watson.Discovery.v1\IBM.Watson.Discovery.v1.csproj --configuration Release
285+
265286 dotnet pack .\src\IBM.Watson.Discovery.v2\IBM.Watson.Discovery.v2.csproj --configuration Release
287+
266288 dotnet pack .\src\IBM.Watson.LanguageTranslator.v3\IBM.Watson.LanguageTranslator.v3.csproj --configuration Release
289+
267290 dotnet pack .\src\IBM.Watson.NaturalLanguageClassifier.v1\IBM.Watson.NaturalLanguageClassifier.v1.csproj --configuration Release
291+
268292 dotnet pack .\src\IBM.Watson.NaturalLanguageUnderstanding.v1\IBM.Watson.NaturalLanguageUnderstanding.v1.csproj --configuration Release
293+
269294 dotnet pack .\src\IBM.Watson.PersonalityInsights.v3\IBM.Watson.PersonalityInsights.v3.csproj --configuration Release
295+
270296 dotnet pack .\src\IBM.Watson.SpeechToText.v1\IBM.Watson.SpeechToText.v1.csproj --configuration Release
297+
271298 dotnet pack .\src\IBM.Watson.TextToSpeech.v1\IBM.Watson.TextToSpeech.v1.csproj --configuration Release
299+
272300 dotnet pack .\src\IBM.Watson.ToneAnalyzer.v3\IBM.Watson.ToneAnalyzer.v3.csproj --configuration Release
301+
273302 dotnet pack .\src\IBM.Watson.VisualRecognition.v3\IBM.Watson.VisualRecognition.v3.csproj --configuration Release
303+
274304 dotnet pack .\src\IBM.Watson.VisualRecognition.v4\IBM.Watson.VisualRecognition.v4.csproj --configuration Release
305+
275306 )
307+
276308 )
277309
278310artifacts :
0 commit comments