diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index c6c3f24..0d08934 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -8,7 +8,7 @@ jobs: Explore-Gitea-Actions: runs-on: runner steps: - - uses: gitea/actions/checkout@v4 + - uses: actions/checkout@v4 - name: Install rsync and ssh run: sudo apt update && sudo apt install -y rsync openssh-client - name: Configure ssh key @@ -20,6 +20,6 @@ jobs: chmod 600 ~/.ssh/private_key ssh-keyscan -p 2001 cancerai.top >> ~/.ssh/known_hosts - name: Push data to website server - run: rsync --delete -e "ssh -p 2001" ./ nginx@cancerai.top:www/owner/ + run: rsync --delete -e "ssh -i ~/.ssh/private_key -p 2001" ./ nginx@cancerai.top:www/owner/ - name: Clean key run: rm -rf ~/.ssh