Skip to content

Commit

Permalink
Bump v2.1.1-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmj committed May 21, 2024
1 parent 0f12f98 commit 0a5c49f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# CHANGELOG

## v2.1.1-dev

## v2.1.0 (2024-05-21)

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Hex.MixProject do
use Mix.Project

@version "2.1.0"
@version "2.1.1-dev"

def project do
[
Expand Down
27 changes: 17 additions & 10 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ function join { local IFS="$1"; shift; echo "$*"; }
# $4 = saved elixir version
# $5 = ubuntu version
function build {
echo "Building ${3} ${2} ${5}"
rm -rf _build src/mix_safe_erl_term.erl
docker run -v $PWD:/hex hexpm/elixir:${3}-erlang-${2}-ubuntu-${5} sh -c "mix local.hex --force"
docker run -v $PWD:/hex hexpm/elixir:${3}-erlang-${2}-ubuntu-${5} sh -c "cd /hex && mix local.hex --force && MIX_ENV=prod mix archive.build -o hex.ez"
docker run -v $PWD:/hex hexpm/elixir:${3}-erlang-${2}-ubuntu-${5} sh -c "cd /hex && mix local.hex --force && MIX_ENV=prod mix archive.build -o hex-${1}.ez"
cp hex.ez hex-elixir-${4}.ez
cp hex-${1}.ez hex-${1}-elixir-${4}.ez
mkdir _build

docker run -v $(pwd):/hex hexpm/elixir:${3}-erlang-${2}-ubuntu-${5} sh -c " \
cd /hex && \
MIX_ENV=prod mix archive.build -o hex.ez && \
MIX_ENV=prod mix archive.build -o hex-${1}.ez"

mv hex.ez hex-elixir-${4}.ez
mv hex-${1}.ez hex-${1}-elixir-${4}.ez
}

# $1 = hex version
Expand Down Expand Up @@ -61,9 +66,11 @@ function upload {

hex_version=$1

rm -rf *.ez

# UPDATE THIS FOR EVERY RELEASE
build ${hex_version} 24.3.4.17 1.16.3 1.16.0 focal-20240123
build ${hex_version} 24.3.4.16 1.15.8 1.15.0 focal-20240123
build ${hex_version} 24.3.4.17 1.16.3 1.16.0 focal-20240427
build ${hex_version} 24.3.4.17 1.15.8 1.15.0 focal-20240427
build ${hex_version} 23.3 1.14.2 1.14.0 xenial-20210114
build ${hex_version} 22.3 1.13.4 1.13.0 xenial-20200212
build ${hex_version} 22.3 1.12.3 1.12.0 xenial-20200212
Expand All @@ -73,8 +80,8 @@ build ${hex_version} 20.3 1.9.4 1.9.0 xenial-20200212
build ${hex_version} 20.3 1.8.2 1.8.0 xenial-20200212
build ${hex_version} 19.3 1.7.4 1.7.0 xenial-20200212
build ${hex_version} 19.3 1.6.6 1.6.0 xenial-20200212
build ${hex_version} 18.3 1.5.3 1.5.0 xenial-20200212

rm -rf _build

hex_csv "${hex_version}" 1.5.0 1.6.0 1.7.0 1.8.0 1.9.0 1.10.0 1.11.0 1.12.0 1.13.0 1.14.0 1.15.0 1.16.0
upload "${hex_version}" 1.5.0 1.6.0 1.7.0 1.8.0 1.9.0 1.10.0 1.11.0 1.12.0 1.13.0 1.14.0 1.15.0 1.16.0
hex_csv "${hex_version}" 1.6.0 1.7.0 1.8.0 1.9.0 1.10.0 1.11.0 1.12.0 1.13.0 1.14.0 1.15.0 1.16.0
upload "${hex_version}" 1.6.0 1.7.0 1.8.0 1.9.0 1.10.0 1.11.0 1.12.0 1.13.0 1.14.0 1.15.0 1.16.0

0 comments on commit 0a5c49f

Please sign in to comment.