Skip to content

Commit

Permalink
fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
olexh committed Mar 23, 2024
1 parent 1d98c84 commit 4816a9c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,15 @@ jobs:
# Use the 'appleboy/ssh-action' action for SSH deployment
uses: appleboy/ssh-action@master
with:
host: ${{ auths.HOST }} # server's IP address
username: ${{ auths.USERNAME }} # server's username
key: ${{ auths.SSH_PRIVATE_KEY }} # server's SSH private key
passphrase: ${{ auths.SSH_PASSWORD }} # server's SSH key password
host: ${{ secrets.HOST }} # server's IP address
username: ${{ secrets.USERNAME }} # server's username
key: ${{ secrets.SSH_PRIVATE_KEY }} # server's SSH private key
passphrase: ${{ secrets.SSH_PASSWORD }} # server's SSH key password
script: |
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
cd /home/debian/hikka-next
git pull
yarn install
yarn build
pm2 reload hikka-next
pm2 reload hikka-next

0 comments on commit 4816a9c

Please sign in to comment.