Fix reversed environment env var check

This commit is contained in:
Kristian Freeman 2019-10-14 15:33:15 -05:00
parent 1cc0beba60
commit ee82b9d1be

View file

@ -29,14 +29,11 @@ export CF_EMAIL="$INPUT_EMAIL"
export CF_API_KEY="$INPUT_APIKEY"
npm i @cloudflare/wrangler -g
npm i
ls
if [ -z "$INPUT_ENVIRONMENT" ]
then
wrangler publish -e "$INPUT_ENVIRONMENT"
else
wrangler publish
else
wrangler publish -e "$INPUT_ENVIRONMENT"
fi