Skip to content

Commit

Permalink
Add task for pushing standalone mix
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmj committed Oct 7, 2014
1 parent 9825d9e commit f35e231
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,16 @@ release_docs: docs
rm -rf ../docs/master
mv docs ../docs/master

# This task requires aws-cli to be installed and set up for access to s3.hex.pm
# See: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html

publish_mix: compile
cd lib/mix && MIX_ENV=prod mix escript.build
aws s3 cp lib/mix/mix s3:https://s3.hex.pm/builds/mix/v$(VERSION)/mix --acl public-read
aws s3 cp lib/mix/mix s3:https://s3.hex.pm/builds/mix/mix --acl public-read
rm lib/mix/mix
rm -rf lib/mix/_build

#==> Tests tasks

test: test_erlang test_elixir
Expand Down
2 changes: 2 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ This document simply outlines the release process:

10. Add the release to `elixir.csv` file in `elixir-lang/elixir-lang.github.com`

11. Build and push standalone Mix with `make publish_mix` (requires AWS credentials)

## New vMAJOR.MINOR releases

11. Create a new branch "vMAJOR.MINOR" release
Expand Down

0 comments on commit f35e231

Please sign in to comment.