diff --git a/upload.sh b/upload.sh index f06b2cd..8b98380 100755 --- a/upload.sh +++ b/upload.sh @@ -1,6 +1,10 @@ #!/bin/bash -source ./.env +if [ ! -z $CI_COMMIT_BRANCH ];then + source $NEOCITIES_AUTH +else + source ./.env +fi url="https://neocities.org" auth="Authorization: Bearer $KEY"