From 56cc8e7831dcb46a30b87c8e06e558974ea16069 Mon Sep 17 00:00:00 2001 From: log101 Date: Tue, 11 Jun 2024 14:18:42 +0300 Subject: [PATCH] ci: add new step --- .gitea/workflows/push-registry.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/push-registry.yml b/.gitea/workflows/push-registry.yml index 2e0709d..2080418 100644 --- a/.gitea/workflows/push-registry.yml +++ b/.gitea/workflows/push-registry.yml @@ -43,18 +43,21 @@ jobs: run: | ${{ steps.detect-package-manager.outputs.runner }} astro build working-directory: ${{ env.BUILD_PATH }} + - uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.KEY }} - name: Deploy to my server uses: up9cloud/action-rsync@master env: + USER: ${{ secrets.USERNAME }} HOST: ${{ secrets.HOST }} KEY: ${{ secrets.KEY }} + SOURCE: ./dist/ TARGET: ${{ secrets.DESTINATION_FOLDER }} - VERBOSE: true - USER: ${{ secrets.USERNAME }} - ARGS: -az --exclude=/.git/ + ARGS: -avz --exclude=/.git/ SSH_ARGS: "-p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" - SOURCE: ./dist/ + VERBOSE: true PRE_SCRIPT: | echo start at: