diff --git a/tasks/doc.rake b/tasks/doc.rake index 1860fd1..54ba91e 100644 --- a/tasks/doc.rake +++ b/tasks/doc.rake @@ -17,7 +17,7 @@ desc 'Publishes PDF' task :pdfupload => :pdf do require 'date' - tag = Date.today.strftime('doc-%Y-%m-%d') + tag = Date.today.strftime('doc-%Y-%m-%d-') + $SPB_ENV blob = `git hash-object -w docs/_build/latex/softwarepublico.pdf`.strip tree = `printf '100644 blob #{blob}\tsoftwarepublico-#{$SPB_ENV}.pdf\n' | git mktree`.strip commit = `git commit-tree -m #{tag} #{tree}`.strip -- libgit2 0.21.2