From 97540901edc6d2c9b57fec075a09c24648da59b9 Mon Sep 17 00:00:00 2001 From: YaoLei <1049031269@qq.com> Date: Mon, 6 Jul 2026 10:49:47 +0800 Subject: [PATCH] Remove config copy step and add rsync/openssh-client installation for Debian --- .gitea/workflows/deploy.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index c513d5b..fae569b 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -23,11 +23,6 @@ jobs: echo "Cloning $REPO_URL to content directory" git clone --depth=1 "$REPO_URL" /tmp/hugo-site/content - - name: Copy config file to Hugo site - run: | - set -e - cp /tmp/hugo-site/content/config.toml /tmp/hugo-site/ - - name: Build site with Hugo working-directory: /tmp/hugo-site run: | @@ -44,6 +39,8 @@ jobs: working-directory: /tmp/hugo-site run: | set -e + # Install rsync and openssh-client for Debian + apt-get update && apt-get install -y rsync openssh-client # Setup SSH key for rsync mkdir -p ~/.ssh echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa