Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
druhtru authored Sep 7, 2024
1 parent 2aef1a6 commit aad16eb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Docusaurus Site to Server
name: Deploy to Server

on:
push:
Expand All @@ -10,18 +10,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout the repository
- name: Checkout code
uses: actions/checkout@v2

- name: Deploy to Server via SSH
- name: Deploy to Server
uses: appleboy/ssh-action@v0.1.6
with:
host: ${{ secrets.SERVER_IP }} # IP вашого сервера
username: ${{ secrets.SERVER_USER }} # Користувач на сервері
password: ${{ secrets.SERVER_PASSWORD }} # Пароль для SSH
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SERVER_USER }}
password: ${{ secrets.SERVER_PASSWORD }}
port: 22
script: |
cd /home/node/docs
git pull
git pull origin main
npm run build
pm2 restart docusaurus

0 comments on commit aad16eb

Please sign in to comment.