Skip to content

Commit

Permalink
Add development deployment pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
szivkovicx committed Nov 19, 2024
1 parent f42271f commit 7d9a82e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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 &

0 comments on commit 7d9a82e

Please sign in to comment.