1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-12-22 12:30:01 +00:00
8bitworkshop/scripts/archive.sh
2021-02-21 13:31:24 -06:00

15 lines
372 B
Bash
Executable File

# https://github.com/Kentzo/git-archive-all
# build archives
export VERSION=`git tag | tail -1`
export PREFIX=8bitworkshop-$VERSION
echo "Run make dist first!"
mv tmp/dist tmp/$PREFIX
cd tmp
zip -9rf ../release/$PREFIX.zip $PREFIX
cd ..
# copy to remote
DESTPATH=$RSYNC_PATH/release/
echo "Copy to $DESTPATH"
rsync -rv --progress --stats -e "ssh" release/*.zip $DESTPATH