From 2ecd602f481e30c60f36aaa2734443e9e2b1c834 Mon Sep 17 00:00:00 2001 From: Benoit Donneaux Date: Fri, 24 May 2024 10:24:26 +0200 Subject: [PATCH] Fix deploy script Signed-off-by: Benoit Donneaux --- .gitea/workflows/jekyll.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/jekyll.yaml b/.gitea/workflows/jekyll.yaml index 9c5fa1e..c0d998e 100644 --- a/.gitea/workflows/jekyll.yaml +++ b/.gitea/workflows/jekyll.yaml @@ -63,7 +63,7 @@ jobs: else WEB_ROOT="${WEB_DIR}/preview" WEB_HOST="preview.${WEB_DOMAIN}" - WEB_CONTEXT='/{{ gitea.event.pull_request.number }}/' + WEB_CONTEXT='/${{ gitea.event.pull_request.number }}/' end # Save those variabes in the environment for the next steps echo "WEB_HOST=${WEB_HOST}" >> $GITEA_ENV @@ -71,7 +71,7 @@ jobs: # Synchronize the local and the remote site rsync -halvi --delete \ -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 id: comment_pull_request if: gitea.event_name == 'pull_request'