Skip to content

Commit

Permalink
Add bin/release script
Browse files Browse the repository at this point in the history
Adds a simple bin/release script that helps automate the bumping of a
version and pushing a tag as well as running `mix hex.publish`.

Usage: `bin/release previous current`

Example:

```
bin/release 2.4.0 2.5.0
```
  • Loading branch information
germsvel committed Dec 24, 2020
1 parent 06be314 commit 489cdd3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bin/release
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

set -e

previous_version="${1}"
release_version="${2}"

sed -i '' "s/$previous_version/$release_version/" README.md
sed -i '' "s/$previous_version/$release_version/" mix.exs

git commit -m "Release version $release_version"
git tag "v$release_version"
git push origin "v$release_version"
mix hex.publish

0 comments on commit 489cdd3

Please sign in to comment.