From 1b6f36b972bc7acf9db0ca5b1a8792e59080998d Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 10 Feb 2021 20:49:32 -0800 Subject: [PATCH] guard added for building on a pipeline vs locally, now using the gitlabs env file system for sourceing --- upload.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"