8bitworkshop/scripts/archive.sh

15 lines
372 B
Bash
Raw Normal View History

2018-12-21 21:50:54 +00:00
# https://github.com/Kentzo/git-archive-all
# build archives
export VERSION=`git tag | tail -1`
export PREFIX=8bitworkshop-$VERSION
2021-02-21 19:31:24 +00:00
echo "Run make dist first!"
mv tmp/dist tmp/$PREFIX
cd tmp
zip -9rf ../release/$PREFIX.zip $PREFIX
cd ..
2018-12-21 21:50:54 +00:00
# copy to remote
DESTPATH=$RSYNC_PATH/release/
2021-02-21 19:31:24 +00:00
echo "Copy to $DESTPATH"
2019-05-18 19:26:51 +00:00
rsync -rv --progress --stats -e "ssh" release/*.zip $DESTPATH