Skip to content

Commit

Permalink
Bump version, add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
danielberkompas committed Jul 15, 2016
1 parent 2934649 commit 06ab048
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/torch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ To install Torch, perform the following steps:

```elixir
def deps do
[{:torch, "~> 0.2.0-rc.6"}]
[{:torch, "~> 1.0.0-rc.1"}]
end
```

Expand Down
2 changes: 1 addition & 1 deletion apps/torch/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Torch.Mixfile do

def project do
[app: :torch,
version: "0.2.0-rc.5",
version: "1.0.0-rc.1",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
Expand Down
20 changes: 20 additions & 0 deletions bin/release
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env ruby

puts "What version number do you want to release?"
print "> "
version = gets.gsub(/\n/, "")

continue = system "github_changelog_generator"
continue = system "git add ."
continue = system "git commit -am \"Release version #{version}\"" if continue
continue = system "git tag v#{version}" if continue
continue = system "git push" if continue
continue = system "git push -f origin v#{version}" if continue
continue = system "cd apps/torch && mix hex.publish" if continue
continue = system "cd apps/torch && mix hex.docs" if continue
continue = system "github_changelog_generator"
continue = system "git add ." if continue
continue = system "git commit -am \"Update changelog for version #{version}\"" if continue
continue = system "git push" if continue

puts "Version #{version} was successfully released!"

0 comments on commit 06ab048

Please sign in to comment.