Skip to content

Commit

Permalink
Merge pull request #116 from pitastrudl/update_cd_deploy
Browse files Browse the repository at this point in the history
Replace deploy action with another one
  • Loading branch information
renzenicolai authored May 11, 2024
2 parents fab7e54 + cbf97e1 commit 8682f33
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ jobs:
- name: Build
run: bash build.sh

- name: Deploy with Rsync
uses: SamKirkland/web-deploy@v1
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
with:
source-path: './public/'
target-server: ${{ vars.HOST }}
ssh-port: ${{ vars.SSH_PORT }}
remote-user: ${{ vars.SSH_USER }}
private-ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
destination-path: ${{ vars.WEBROOT }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i --delete"
SOURCE: './public/'
REMOTE_HOST: ${{ vars.HOST }}
REMOTE_USER: ${{ vars.SSH_USER }}
REMOTE_PORT: ${{ vars.SSH_PORT }}
TARGET: ${{ vars.WEBROOT }}

0 comments on commit 8682f33

Please sign in to comment.