Skip to content

Commit

Permalink
fix bugs in manual doc release
Browse files Browse the repository at this point in the history
in the future we might want to just use hexdocs.pm instead
  • Loading branch information
mroth committed Jan 14, 2016
1 parent 12342f6 commit 3c6c536
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ defmodule Exmoji.Mixfile do
defp release_docs(_) do
additional_files = ["README.md"]
Mix.Task.run "clean.docs"
:os.cmd 'git clone --branch gh-pages `git config --get remote.origin.url` docs'
:os.cmd 'git clone --branch gh-pages `git config --get remote.origin.url` doc'
Mix.Task.run "docs"
Enum.each(additional_files, &File.cp!(&1, Path.join("docs", &1)))
File.cd! "docs", fn ->
Enum.each(additional_files, &File.cp!(&1, Path.join("doc", &1)))
File.cd! "doc", fn ->
:os.cmd 'git add -A .'
:os.cmd 'git commit -m "Updated docs"'
:os.cmd 'git push origin gh-pages'
Expand Down

0 comments on commit 3c6c536

Please sign in to comment.