diff --git a/upload.sh b/upload.sh index ff0b7e3..9c61d31 100755 --- a/upload.sh +++ b/upload.sh @@ -2,14 +2,15 @@ if [ ! -z $CI_COMMIT_BRANCH ];then echo Gitlab CI Detected! - echo KEY=$NEOCITIES_KEY >> .env -else - source ./.env + echo export KEY=$NEOCITIES_KEY >> .env fi +source .env + url="https://neocities.org" -auth="Authorization: Bearer $KEY" site=.mirror +auth="Authorization: Bearer $KEY" + _upload_html() { # fix this comparison cuz its busted