workflow bugfix
This commit is contained in:
parent
e300d35ed1
commit
a05b637697
1 changed files with 5 additions and 5 deletions
10
.github/workflows/deploy.yml
vendored
10
.github/workflows/deploy.yml
vendored
|
@ -24,11 +24,11 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
ssh -v -o StrictHostKeyChecking=no ${{ secrets.USERNAME }}@${{ secrets.SERVER_IP }} "echo 'SSH Connection Successful'"
|
ssh -v -o StrictHostKeyChecking=no ${{ secrets.USERNAME }}@${{ secrets.SERVER_IP }} "echo 'SSH Connection Successful'"
|
||||||
|
|
||||||
- name: Deploy Files with Rsync
|
- name: Deploy Files using Rsync
|
||||||
uses: appleboy/rsync-action@v0.1.3
|
uses: appleboy/ssh-action@v0.1.10
|
||||||
with:
|
with:
|
||||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
||||||
source: "."
|
|
||||||
target: ${{ secrets.PROJECT_PATH }}
|
|
||||||
host: ${{ secrets.SERVER_IP }}
|
host: ${{ secrets.SERVER_IP }}
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
script: |
|
||||||
|
rsync -avz --delete --exclude='.git' $GITHUB_WORKSPACE/ ${{ secrets.USERNAME }}@${{ secrets.SERVER_IP }}:${{ secrets.PROJECT_PATH }}
|
Loading…
Add table
Add a link
Reference in a new issue