Fix deploy script
Jekyll / jekyll (pull_request) Failing after 19s
Details
Jekyll / jekyll (pull_request) Failing after 19s
Details
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
parent
a0d865d21b
commit
2ecd602f48
|
@ -63,7 +63,7 @@ jobs:
|
||||||
else
|
else
|
||||||
WEB_ROOT="${WEB_DIR}/preview"
|
WEB_ROOT="${WEB_DIR}/preview"
|
||||||
WEB_HOST="preview.${WEB_DOMAIN}"
|
WEB_HOST="preview.${WEB_DOMAIN}"
|
||||||
WEB_CONTEXT='/{{ gitea.event.pull_request.number }}/'
|
WEB_CONTEXT='/${{ gitea.event.pull_request.number }}/'
|
||||||
end
|
end
|
||||||
# Save those variabes in the environment for the next steps
|
# Save those variabes in the environment for the next steps
|
||||||
echo "WEB_HOST=${WEB_HOST}" >> $GITEA_ENV
|
echo "WEB_HOST=${WEB_HOST}" >> $GITEA_ENV
|
||||||
|
@ -71,7 +71,7 @@ jobs:
|
||||||
# Synchronize the local and the remote site
|
# Synchronize the local and the remote site
|
||||||
rsync -halvi --delete \
|
rsync -halvi --delete \
|
||||||
-e "ssh -a -x -o StrictHostKeyChecking=no" \
|
-e "ssh -a -x -o StrictHostKeyChecking=no" \
|
||||||
"./_site/${WEB_USER}@${WEB_DOMAIN}:${WEB_ROOT}${WEB_CONTEXT}"
|
"./_site/" "${WEB_USER}@${WEB_DOMAIN}:${WEB_ROOT}${WEB_CONTEXT}"
|
||||||
- name: Comment pull request
|
- name: Comment pull request
|
||||||
id: comment_pull_request
|
id: comment_pull_request
|
||||||
if: gitea.event_name == 'pull_request'
|
if: gitea.event_name == 'pull_request'
|
||||||
|
|
Loading…
Reference in New Issue