From 7fe71d40c884d563fc3afb86797d8491b9c4ff47 Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 24 Dec 2019 15:30:17 -0800 Subject: [PATCH] poc deployment script for pipeline later --- deploy.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 deploy.sh 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" +