Skip to content

Commit f547693

Browse files
authored
Update deploy.yml
1 parent 4f00c3c commit f547693

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,16 @@ jobs:
2525
env:
2626
CI: true
2727
- name: Running remote SSH commands
28-
uses: JimCronqvist/action-ssh@master
28+
uses: appleboy/ssh-action@master
2929
with:
30-
hosts: ${{ secrets.HOST }}
31-
privatekey: ${{ secrets.SSHKEY }}
32-
command: |
33-
cd ~/www/lugnitdgp.github.io
30+
host: ${{ secrets.HOST }}
31+
username: ${{ secrets.USERNAME }}
32+
password: ${{ secrets.PASSWORD }}
33+
port: ${{ secrets.PORT }}
34+
script: |
35+
cd /home/glugwebsite/lugnitdgp.github.io
3436
git checkout prod
3537
git pull origin prod
36-
sudo docker-compose up -d --build
38+
npm run build
3739
cd ~
3840
sudo systemctl restart nginx

0 commit comments

Comments
 (0)