Skip to content

Commit 1506256

Browse files
committed
[build] create publish-nuget task
1 parent 7647b5f commit 1506256

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Rakefile

+11
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,17 @@ task 'publish-maven': JAVA_RELEASE_TARGETS do
430430
end
431431
end
432432

433+
NUGET_RELEASE_ASSETS = [
434+
"./bazel-bin/dotnet/src/webdriver/Selenium.WebDriver.#{dotnet_version}.nupkg",
435+
"./bazel-bin/dotnet/src/webdriver/Selenium.Support.#{dotnet_version}.nupkg"
436+
]
437+
438+
task 'publish-nuget' do
439+
NUGET_RELEASE_ASSETS.each do |asset|
440+
sh "dotnet nuget push #{asset} --api-key #{ENV[:NUGET_API_KEY]} --source https://api.nuget.org/v3/index.json"
441+
end
442+
end
443+
433444
task 'publish-maven-snapshot': JAVA_RELEASE_TARGETS do
434445
creds = read_m2_user_pass
435446
if java_version.end_with?('-SNAPSHOT')

0 commit comments

Comments
 (0)