diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..e7f44fc --- /dev/null +++ b/deploy.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +# Build it all +#./make -a + +if [ -f .env ];then + . ./.env +fi + +rootDir='./site/' +url="https://$USER:$PASS@neocities.org/api" + +cd $rootDir +# First the root pages +for lpage in `find . -type f`;do + remote=`echo $lpage | cut -c2-64` + echo curl -F $remote'=@'$lpage $url/upload + curl -F "$remote"'=@'"$lpage" "$url"/upload +done + +#curl -F "/yes/test.html=@e.html" "$url/upload" +