diff --git a/upload.sh b/upload.sh index 8b98380..c392429 100755 --- a/upload.sh +++ b/upload.sh @@ -1,11 +1,14 @@ #!/bin/bash if [ ! -z $CI_COMMIT_BRANCH ];then - source $NEOCITIES_AUTH -else - source ./.env + echo Gitlab CI Detected! + echo $NEOCITIES_USER > .env + echo $NEOCITIES_PASS >> .env + echo $NEOCITIES_KEY >> .env fi +source ./.env + url="https://neocities.org" auth="Authorization: Bearer $KEY" site=.mirror