-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to elixir v0.12.4 and support v0.13.0-dev
- Loading branch information
Showing
4 changed files
with
348 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
[ "ex_doc": {:git, "git://github.com/elixir-lang/ex_doc.git", "aecbe8cf755fc81d76e2924d69a33642b7945af9", []} ] | ||
[ "ex_doc": {:git, "git://github.com/elixir-lang/ex_doc.git", "1419e7adc1c289cd75587d9f435c412c70c297d9", []} ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Run with mix run release_docs.exs | ||
|
||
# Uncommited changes will not be included! | ||
|
||
# Files that will be included in addition to the | ||
# ex_doc generated files | ||
additional_files = [ | ||
"README.html" | ||
] | ||
|
||
System.cmd "git stash -u" | ||
|
||
Mix.Task.run "docs" | ||
files = Path.wildcard("docs/**") |> Enum.map(&Path.relative_to(&1, "docs")) | ||
files = files ++ additional_files | ||
|
||
IO.puts System.cmd "git checkout gh-pages" | ||
|
||
System.cmd "git reset" | ||
|
||
old_files = System.cmd("git ls-files") |> String.split("\n") | ||
old_files = old_files -- additional_files | ||
IO.puts System.cmd "git rm " <> Enum.join(old_files, " ") | ||
|
||
File.cp_r "docs/.", "./" | ||
File.rm_rf! "docs" | ||
|
||
IO.puts System.cmd "git add " <> Enum.join(files, " ") | ||
IO.puts System.cmd "git commit -m \"Update docs\"" | ||
IO.puts System.cmd "git push" | ||
|
||
Enum.each(files, &File.rm_rf!/1) | ||
IO.puts System.cmd "git checkout master --force" | ||
System.cmd "git stash pop" |
Oops, something went wrong.