poc deployment script for pipeline later

This commit is contained in:
shockrah 2019-12-24 15:30:17 -08:00
parent 904ac309c0
commit 7fe71d40c8

22
deploy.sh Normal file
View File

@ -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"