forked from LaconicNetwork/kompose
Merge pull request #583 from cdrage/update-it-again
Release script binary upload bug
This commit is contained in:
commit
a2cff3e11a
@ -114,10 +114,13 @@ build_binaries() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
create_tarballs() {
|
create_tarballs() {
|
||||||
for f in $CLI/bin/*
|
# cd into the bin directory so we don't have '/bin' inside the tarball
|
||||||
|
cd bin
|
||||||
|
for f in *
|
||||||
do
|
do
|
||||||
tar cvzf $f.tar.gz $f
|
tar cvzf $f.tar.gz $f
|
||||||
done
|
done
|
||||||
|
cd ..
|
||||||
}
|
}
|
||||||
|
|
||||||
git_commit() {
|
git_commit() {
|
||||||
@ -172,10 +175,10 @@ push() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Upload all the binaries and tarballs generated in bin/
|
# Upload all the binaries and tarballs generated in bin/
|
||||||
for f in $CLI/bin/*
|
for f in bin/*
|
||||||
do
|
do
|
||||||
echo "Uploading file $f"
|
echo "Uploading file $f"
|
||||||
NAME=`echo $f | sed "s,$CLI/bin/,,g"`
|
NAME=`echo $f | sed "s,bin/,,g"`
|
||||||
github-release upload \
|
github-release upload \
|
||||||
--user $UPSTREAM_REPO \
|
--user $UPSTREAM_REPO \
|
||||||
--repo $CLI \
|
--repo $CLI \
|
||||||
@ -198,7 +201,7 @@ push() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
clean() {
|
clean() {
|
||||||
rm -r $CLI changes.txt
|
rm changes.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user