mirror of
https://github.com/Kyren223/website.git
synced 2026-01-10 23:14:49 +00:00
Trying with rsync action
This commit is contained in:
20
.github/workflows/deploy.yml
vendored
20
.github/workflows/deploy.yml
vendored
@@ -24,10 +24,18 @@ jobs:
|
||||
run: npm run build
|
||||
|
||||
- name: Deploy to server
|
||||
uses: appleboy/scp-action@v0.1.7
|
||||
uses: easingthemes/ssh-deploy@main
|
||||
with:
|
||||
host: 185.170.113.195
|
||||
username: website
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
source: "dist/*"
|
||||
target: "/srv/website"
|
||||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
ARGS: "-avz --delete"
|
||||
SOURCE: "dist/"
|
||||
REMOTE_HOST: 185.170.113.195
|
||||
REMOTE_USER: website
|
||||
TARGET: "/srv/website"
|
||||
SCRIPT_BEFORE: |
|
||||
whoami
|
||||
ls -al
|
||||
SCRIPT_AFTER: |
|
||||
whoami
|
||||
ls -al
|
||||
echo $RSYNC_STDOUT
|
||||
|
||||
Reference in New Issue
Block a user