Skip to content

Commit

Permalink
Deploy builded files to hosting
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjar-x authored Jan 18, 2024
1 parent 1b8f6d8 commit 9cd2803
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ jobs:
npm run build
echo "Build completed successfully"
- name: Deploy to Hosting
run: |
scp -r -o StrictHostKeyChecking=no -i ${{ secrets.SSH_PRIVATE_KEY }} ./build/* ${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }}:${{ secrets.TARGET }}
- name: Deploy to Server
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i --delete"
SOURCE: "build/*"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: "/domains/cyberswap.uz/public_html"
EXCLUDE: "/node_modules/"

0 comments on commit 9cd2803

Please sign in to comment.