Skip to content

Commit 4c9c95f

Browse files
committed
Add task for pushing standalone mix
Signed-off-by: Eric Meadows-Jönsson <[email protected]>
1 parent 8946015 commit 4c9c95f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,16 @@ release_docs: docs
149149
rm -rf ../docs/stable
150150
mv docs ../docs/stable
151151

152+
# This task requires aws-cli to be installed and set up for access to s3.hex.pm
153+
# See: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html
154+
155+
publish_mix: compile
156+
cd lib/mix && MIX_ENV=prod mix escript.build
157+
aws s3 cp lib/mix/mix s3://s3.hex.pm/builds/mix/v$(VERSION)/mix --acl public-read
158+
aws s3 cp lib/mix/mix s3://s3.hex.pm/builds/mix/mix --acl public-read
159+
rm lib/mix/mix
160+
rm -rf lib/mix/_build
161+
152162
#==> Tests tasks
153163

154164
test: test_erlang test_elixir

RELEASE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ This document simply outlines the release process:
2424

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

27+
11. Build and push standalone Mix with `make publish_mix` (requires AWS credentials)
28+
2729
## New vMAJOR.MINOR releases
2830

2931
11. Create a new branch "vMAJOR.MINOR" release

0 commit comments

Comments
 (0)