aw-was-here commented on code in PR #259:
URL: https://github.com/apache/yetus/pull/259#discussion_r858758877


##########
asf-site-src/config.rb:
##########
@@ -119,24 +119,17 @@ def releasenotes(output, version)
 end
 
 def build_release_docs(output, version)
-  # TODO: get the version date from jira and do an up to date check instead of 
building each time.
   puts "Building docs for release #{version}"
-  puts "\tcleaning up output directories in #{output}"
-  FileUtils.rm_rf("#{output}/build-#{version}", secure: true)
-  FileUtils.rm_rf("#{output}/#{version}", secure: true)
 
   puts "Downloading and extracting #{version} from ASF archives"
   `(cd #{output} \
-    && mkdir -p build-#{version} \
+    && mkdir -p site/documentation/#{version} \
     && curl --fail --location --output site-#{version}.tar.gz \
     
https://archive.apache.org/dist/yetus/#{version}/apache-yetus-#{version}-site.tar.gz
 \
-    && tar -C build-#{version} \
-    --strip-components 3 -xzpf site-#{version}.tar.gz \
+    && tar -C site/documentation/#{version} \
+    --strip-components 3 -xzkpf site-#{version}.tar.gz \

Review Comment:
   See below.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to