Add development deployment pipeline #1
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
name: Deploy to development environment | |
on: | |
push: | |
branches: [ nih-2024 ] | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy, build and run | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOST }} | |
username: root | |
password: ${{ secrets.PASSWORD }} | |
port: ${{ secrets.PORT }} | |
script: git pull && kill $(ps -ef | grep "/root/.nvm/versions/node/v16.13.1/bin/node /root/reveal-web/node_modules/react-scripts/scripts/start.js" | grep -v "grep" | awk '{print $2}') && npm i && nohup npm start & |