mirror of https://github.com/docker/compose.git
Fix some bugs in release scripts.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
d2556a1347
commit
20c936a251
|
@ -18,10 +18,13 @@ PREV_RELEASE=$1
|
||||||
VERSION=HEAD
|
VERSION=HEAD
|
||||||
URL="https://api.github.com/repos/docker/compose/compare"
|
URL="https://api.github.com/repos/docker/compose/compare"
|
||||||
|
|
||||||
curl -sf "$URL/$PREV_RELEASE...$VERSION" | \
|
contribs=$(curl -sf "$URL/$PREV_RELEASE...$VERSION" | \
|
||||||
jq -r '.commits[].author.login' | \
|
jq -r '.commits[].author.login' | \
|
||||||
sort | \
|
sort | \
|
||||||
uniq -c | \
|
uniq -c | \
|
||||||
sort -nr | \
|
sort -nr)
|
||||||
awk '{print "@"$2","}' | \
|
|
||||||
xargs echo
|
echo "Contributions by user: "
|
||||||
|
echo "$contribs"
|
||||||
|
echo
|
||||||
|
echo "$contribs" | awk '{print "@"$2","}' | xargs
|
||||||
|
|
|
@ -60,7 +60,7 @@ sed -i -e 's/logo.png?raw=true/https:\/\/github.com\/docker\/compose\/raw\/maste
|
||||||
./script/write-git-sha
|
./script/write-git-sha
|
||||||
python setup.py sdist
|
python setup.py sdist
|
||||||
if [ "$(command -v twine 2> /dev/null)" ]; then
|
if [ "$(command -v twine 2> /dev/null)" ]; then
|
||||||
twine upload ./dist/docker-compose-${VERSION}.tar.gz
|
twine upload ./dist/docker-compose-${VERSION/-/}.tar.gz
|
||||||
else
|
else
|
||||||
python setup.py upload
|
python setup.py upload
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue