From 8bf431e511457677c42c3524d0c25cd28ea4fa17 Mon Sep 17 00:00:00 2001 From: titusfortner Date: Fri, 8 Dec 2023 18:12:19 -0600 Subject: [PATCH] [build] fix rakefile tasks for .NET release --- Rakefile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Rakefile b/Rakefile index 9be7edb25c53a..08d211c6a2424 100644 --- a/Rakefile +++ b/Rakefile @@ -337,10 +337,7 @@ task ios_driver: [ ] task 'dotnet-release-zip': [ - '//dotnet/src/webdriver:webdriver-pack', - '//dotnet/src/webdriver:webdriver-strongnamed-pack', - '//dotnet/src/support:support-pack', - '//dotnet/src/support:support-strongnamed-pack', + '//dotnet:all' ] do [ "build/dist/selenium-dotnet-#{dotnet_version}.zip", @@ -442,12 +439,12 @@ end NUGET_RELEASE_ASSETS = [ "./bazel-bin/dotnet/src/webdriver/Selenium.WebDriver.#{dotnet_version}.nupkg", - "./bazel-bin/dotnet/src/webdriver/Selenium.Support.#{dotnet_version}.nupkg" + "./bazel-bin/dotnet/src/support/Selenium.Support.#{dotnet_version}.nupkg" ] -task 'publish-nuget' do +task 'publish-nuget': '//dotnet:all' do NUGET_RELEASE_ASSETS.each do |asset| - sh "dotnet nuget push #{asset} --api-key #{ENV[:NUGET_API_KEY]} --source https://api.nuget.org/v3/index.json" + sh "dotnet nuget push #{asset} --api-key #{ENV['NUGET_API_KEY']} --source https://api.nuget.org/v3/index.json" end end