Skip to content

Commit

Permalink
Update deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Kacharava committed Sep 6, 2024
1 parent b4cb937 commit 0c85614
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20' # or your preferred Node.js version
node-version: '20'

- name: Install dependencies
run: npm install
Expand All @@ -25,10 +25,10 @@ jobs:
run: npm run build

- name: Set up SSH
uses: webfactory/ssh-agent@v0.5.3
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Deploy
run: |
rsync -avz -e "ssh -p 22" ./dist/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/www/
rsync -avz -e "ssh -p 22" ./dist/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/www

0 comments on commit 0c85614

Please sign in to comment.