ci: add new step
All checks were successful
/ Build (push) Successful in 34s

This commit is contained in:
log101 2024-06-11 14:18:42 +03:00
parent 1dc450ce38
commit 56cc8e7831

View File

@ -43,18 +43,21 @@ jobs:
run: | run: |
${{ steps.detect-package-manager.outputs.runner }} astro build ${{ steps.detect-package-manager.outputs.runner }} astro build
working-directory: ${{ env.BUILD_PATH }} working-directory: ${{ env.BUILD_PATH }}
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.KEY }}
- name: Deploy to my server - name: Deploy to my server
uses: up9cloud/action-rsync@master uses: up9cloud/action-rsync@master
env: env:
USER: ${{ secrets.USERNAME }}
HOST: ${{ secrets.HOST }} HOST: ${{ secrets.HOST }}
KEY: ${{ secrets.KEY }} KEY: ${{ secrets.KEY }}
SOURCE: ./dist/
TARGET: ${{ secrets.DESTINATION_FOLDER }} TARGET: ${{ secrets.DESTINATION_FOLDER }}
VERBOSE: true ARGS: -avz --exclude=/.git/
USER: ${{ secrets.USERNAME }}
ARGS: -az --exclude=/.git/
SSH_ARGS: "-p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" SSH_ARGS: "-p 22 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
SOURCE: ./dist/ VERBOSE: true
PRE_SCRIPT: | PRE_SCRIPT: |
echo start at: echo start at: