Try to fix website deploy
parent
fa882b26af
commit
9d448fb217
|
@ -1,6 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if [ ! $GITHUB_TOKEN ]; then
|
if [ "$NODE_ENV" = production ]; then
|
||||||
|
echo "info: skipping deploy in production builds"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! "$GITHUB_TOKEN" ]; then
|
||||||
>&2 echo "error: GITHUB_TOKEN not present in env"
|
>&2 echo "error: GITHUB_TOKEN not present in env"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue