Skip to content

Commit

Permalink
[build] fix rakefile tasks for .NET release
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Dec 9, 2023
1 parent 3640adc commit 8bf431e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 8bf431e

Please sign in to comment.