You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
460 B
30 lines
460 B
#!/bin/sh
|
|
|
|
if [ $# -eq 0 ]
|
|
then
|
|
echo "Add a commit message"
|
|
return 1
|
|
fi
|
|
|
|
git add .
|
|
git commit -m "$1"
|
|
git push origin master
|
|
|
|
# expenses.chodounsky.net
|
|
REACT_APP_SHEET_ID=18uwYwUAVw0H5bhszMgAORmvAN2APxAtJI3FB-XH7Dzk npm run build
|
|
cp -a build/. production/
|
|
cd production
|
|
git add .
|
|
git commit -m "$1"
|
|
git push origin production
|
|
cd ..
|
|
|
|
# github pages
|
|
|
|
npm run build
|
|
cp -a build/. demo/
|
|
cd demo
|
|
git add .
|
|
git commit -m "$1"
|
|
git push origin gh-pages
|
|
cd ..
|