GitLab CI: only deploy review app if Surge credentials are provided
This commit is contained in:
parent
feba064066
commit
7990384f53
|
@ -108,6 +108,8 @@ review:
|
|||
script:
|
||||
- npx -y surge static $CI_COMMIT_REF_SLUG.git.soapbox.pub
|
||||
allow_failure: true
|
||||
rules:
|
||||
- if: $SURGE_LOGIN && $SURGE_TOKEN
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
|
|
Loading…
Reference in a new issue