Skip to content

Commit

Permalink
[build] create publish-nuget task
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Dec 7, 2023
1 parent 7647b5f commit 1506256
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,17 @@ task 'publish-maven': JAVA_RELEASE_TARGETS do
end
end

NUGET_RELEASE_ASSETS = [
"./bazel-bin/dotnet/src/webdriver/Selenium.WebDriver.#{dotnet_version}.nupkg",
"./bazel-bin/dotnet/src/webdriver/Selenium.Support.#{dotnet_version}.nupkg"
]

task 'publish-nuget' 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"
end
end

task 'publish-maven-snapshot': JAVA_RELEASE_TARGETS do
creds = read_m2_user_pass
if java_version.end_with?('-SNAPSHOT')
Expand Down

0 comments on commit 1506256

Please sign in to comment.