File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 7
7
task :gen_version , [ :version ] do |t , args |
8
8
# GITHUB_REF comes from GitHub Actions
9
9
version = args [ :version ] || ENV [ "GITHUB_REF" ] || raise ( "A version is required" )
10
+ puts "Building docs for #{ version } "
10
11
# GitHub Actions gives the full tag name
11
12
if version . start_with? ( "refs/tags/" )
12
13
version = version [ 10 ..-1 ]
21
22
system ( "rm graphql-#{ version } .gem" )
22
23
23
24
Dir . chdir ( "graphql-#{ version } " ) do
24
- system ( "yardoc" )
25
25
# Copy it into gh-pages for publishing
26
26
# and locally for previewing
27
27
push_dest = File . expand_path ( "../gh-pages/api-doc/#{ version } " )
28
28
local_dest = File . expand_path ( "../guides/_site/api-doc/#{ version } " )
29
- mkdir_p push_dest
30
- mkdir_p local_dest
29
+ FileUtils . mkdir_p ( push_dest )
30
+ FileUtils . mkdir_p ( local_dest )
31
+ system ( "yardoc" )
31
32
puts "Copying from #{ Dir . pwd } /doc to #{ push_dest } "
32
33
copy_entry "doc" , push_dest
33
34
puts "Copying from #{ Dir . pwd } /doc to #{ local_dest } "
You can’t perform that action at this time.
0 commit comments