ci: publish: Run a dry run for PR builds
Only actually publish when building the *master* branch.pull/1/head
parent
fab714379c
commit
5effaf78c2
|
@ -2,4 +2,12 @@ PUBLISH_HOST=web0.pyrocufflink.blue
|
|||
PUBLISH_USER=webapp.dchwww
|
||||
PUBLISH_PATH=htdocs/
|
||||
|
||||
rsync -aP public/ ${PUBLISH_USER}@${PUBLISH_HOST}:${PUBLISH_PATH}
|
||||
case "${BRANCH_NAME}" in
|
||||
master)
|
||||
;;
|
||||
*)
|
||||
DRY_RUN=1
|
||||
;;
|
||||
esac
|
||||
|
||||
rsync -aP public/ ${PUBLISH_USER}@${PUBLISH_HOST}:${PUBLISH_PATH} ${DRY_RUN:+-n}
|
||||
|
|
Loading…
Reference in New Issue