poc deployment script for pipeline later
This commit is contained in:
parent
904ac309c0
commit
7fe71d40c8
22
deploy.sh
Normal file
22
deploy.sh
Normal 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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user