GitLab CI: only deploy review app if Surge credentials are provided

This commit is contained in:
Alex Gleason 2022-05-30 12:56:16 -05:00
parent feba064066
commit 7990384f53
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

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