Skip to content

Commit 4587571

Browse files
committed
[build] have the all:release task also update api docs and set nightly versions
1 parent b87c71c commit 4587571

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Rakefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,18 @@ namespace :all do
952952
Rake::Task['dotnet:release'].invoke(args)
953953
Rake::Task['node:release'].invoke(args)
954954
Rake::Task['create_release_notes'].invoke(args)
955+
Rake::Task['all:docs'].invoke
956+
Rake::Task['all:version'].invoke(['nightly'])
957+
958+
puts "Staging nightly version updates"
959+
@git.add(['java/version.bzl', 'rb/lib/selenium/webdriver/version.rb'], all: true)
960+
puts "Committing nightly version updates"
961+
@git.commit('updating versions to nightly')
962+
puts "Pushing changes to upstream repository"
963+
964+
print 'Do you want to commit the changes? (Y/n): '
965+
response = STDIN.gets.chomp.downcase
966+
@git.push if response == 'y' || response == 'yes'
955967
end
956968

957969
desc 'File updates for versions and metadata'

0 commit comments

Comments
 (0)