Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SmirnovMaxim committed Sep 15, 2023
1 parent 2031991 commit b90bdda
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Deploy using ssh
run: |
ssh ${{ secrets.USERNAME }}@${{ secrets.HOST }}
cd /home/app
git pull
make rebuild
- name: ssh-pipeline
uses: cross-the-world/ssh-pipeline@v1.2.0
with:
host: ${{ secrets.HOST }}
user: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /home/app
git pull
make rebuild

0 comments on commit b90bdda

Please sign in to comment.