2018-08-06 21:29:59 +00:00
|
|
|
#!/bin/bash
|
2018-07-26 15:50:20 +00:00
|
|
|
|
2019-09-09 16:21:35 +00:00
|
|
|
#. ./scripts/env.sh
|
|
|
|
#VERSION=`git tag | tail -1`
|
|
|
|
VERSION=`git tag -l --points-at HEAD`
|
2018-07-26 15:50:20 +00:00
|
|
|
if [ "$VERSION" == "" ]; then
|
|
|
|
echo "No version at HEAD! Tag it first!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
DESTPATH=$RSYNC_PATH/v$VERSION
|
2019-08-08 18:31:20 +00:00
|
|
|
DEVPATH=/var/www/html/8bitworkshop.com/dev
|
2019-08-22 17:40:53 +00:00
|
|
|
grep -H "var VERSION" web/redir.html
|
|
|
|
grep -H "var VERSION" web/projects/projects.js
|
|
|
|
echo "Upload version $VERSION to production?"
|
2018-07-26 15:50:20 +00:00
|
|
|
read
|
2020-08-01 18:17:19 +00:00
|
|
|
make dist
|
2018-07-26 15:50:20 +00:00
|
|
|
echo "Copying to $DESTPATH..."
|
2020-08-01 18:17:19 +00:00
|
|
|
rsync --stats -riltz --chmod=a+rx -e "ssh" ./tmp/dist/ config.js $DESTPATH/
|
2018-07-26 15:50:20 +00:00
|
|
|
echo "Done."
|