feat: added auth to mongo #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: push | |
name: deploy | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy NodeJS app | |
uses: appleboy/ssh-action@v0.1.2 | |
with: | |
host: ${{secrets.SSH_HOST}} # Private or public key of the server | |
username: ${{ secrets.SSH_USERNAME }} # User of the server you want to ssh into | |
key: ${{ secrets.SSH_KEY }} | |
script: | | |
export NVM_DIR=~/.nvm | |
source ~/.nvm/nvm.sh | |
pm2 stop index | |
cd /var/www/cronowork-api | |
git reset --hard | |
git pull origin master | |
npm ci | |
npm run build | |
pm2 start index | |