guard added for building on a pipeline vs locally, now using the gitlabs env file system for sourceing

This commit is contained in:
shockrah 2021-02-10 20:49:32 -08:00
parent e29ea8c0ee
commit 1b6f36b972

View File

@ -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"