From 52b555d925f0720357ba58378218105a40465658 Mon Sep 17 00:00:00 2001 From: Benoit Donneaux Date: Fri, 24 May 2024 14:19:45 +0200 Subject: [PATCH 1/2] Fix Jeakyll preview cleanup step Signed-off-by: Benoit Donneaux --- .gitea/workflows/jekyll_cleanup.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/jekyll_cleanup.yml b/.gitea/workflows/jekyll_cleanup.yml index 74606dc..208ebed 100644 --- a/.gitea/workflows/jekyll_cleanup.yml +++ b/.gitea/workflows/jekyll_cleanup.yml @@ -18,6 +18,12 @@ jobs: actions: read contents: read steps: + - name: Install requirements + id: install_requirements + run: | + apt-get -q update + apt-get -q install -y lftp + apt-get -q clean - name: Cleanup Jeyll preview id: cleanup_preview run: | @@ -25,6 +31,5 @@ jobs: echo "${{ secrets.WWW_DEPLOY_KEY }}" > ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519 # Delete preview context from the remote site - sudo apt install -y lftp echo -e "set sftp:connect-program ssh -a -x -o StrictHostKeyChecking=no; rm -r -f ${WEB_ROOT}${WEB_CONTEXT}\nbye" \ | lftp sftp://${WEB_USER}:unused@${WEB_DOMAN} -- 2.44.1 From fc9ee82a8dfb8aa71d89feeedf384d7b806f4094 Mon Sep 17 00:00:00 2001 From: Benoit Donneaux Date: Fri, 24 May 2024 14:27:45 +0200 Subject: [PATCH 2/2] Fix typo Signed-off-by: Benoit Donneaux --- .gitea/workflows/jekyll_cleanup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/jekyll_cleanup.yml b/.gitea/workflows/jekyll_cleanup.yml index 208ebed..b69ad1f 100644 --- a/.gitea/workflows/jekyll_cleanup.yml +++ b/.gitea/workflows/jekyll_cleanup.yml @@ -32,4 +32,4 @@ jobs: chmod 600 ~/.ssh/id_ed25519 # Delete preview context from the remote site echo -e "set sftp:connect-program ssh -a -x -o StrictHostKeyChecking=no; rm -r -f ${WEB_ROOT}${WEB_CONTEXT}\nbye" \ - | lftp sftp://${WEB_USER}:unused@${WEB_DOMAN} + | lftp sftp://${WEB_USER}:unused@${WEB_DOMAIN} -- 2.44.1