mdf-blog/push.sh

12 lines
217 B
Bash
Executable file

#!/bin/sh
git add blogs
git commit -m "blog update"
git push
for file in $(find public -type f)
do
echo "uploading: $file"
curl -u "$USER:$PASSWORD" https://mdf.farm/api/${file#*/} --upload-file $file
done