Skip to content

Commit 8bf431e

Browse files
committed
[build] fix rakefile tasks for .NET release
1 parent 3640adc commit 8bf431e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Rakefile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,7 @@ task ios_driver: [
337337
]
338338

339339
task 'dotnet-release-zip': [
340-
'//dotnet/src/webdriver:webdriver-pack',
341-
'//dotnet/src/webdriver:webdriver-strongnamed-pack',
342-
'//dotnet/src/support:support-pack',
343-
'//dotnet/src/support:support-strongnamed-pack',
340+
'//dotnet:all'
344341
] do
345342
[
346343
"build/dist/selenium-dotnet-#{dotnet_version}.zip",
@@ -442,12 +439,12 @@ end
442439

443440
NUGET_RELEASE_ASSETS = [
444441
"./bazel-bin/dotnet/src/webdriver/Selenium.WebDriver.#{dotnet_version}.nupkg",
445-
"./bazel-bin/dotnet/src/webdriver/Selenium.Support.#{dotnet_version}.nupkg"
442+
"./bazel-bin/dotnet/src/support/Selenium.Support.#{dotnet_version}.nupkg"
446443
]
447444

448-
task 'publish-nuget' do
445+
task 'publish-nuget': '//dotnet:all' do
449446
NUGET_RELEASE_ASSETS.each do |asset|
450-
sh "dotnet nuget push #{asset} --api-key #{ENV[:NUGET_API_KEY]} --source https://api.nuget.org/v3/index.json"
447+
sh "dotnet nuget push #{asset} --api-key #{ENV['NUGET_API_KEY']} --source https://api.nuget.org/v3/index.json"
451448
end
452449
end
453450

0 commit comments

Comments
 (0)