Skip to content

Commit

Permalink
Setup Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruchir28 committed Feb 10, 2024
1 parent 7ff9186 commit 1230725
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy Application

on:
push:
branches:
- main # or any branch you want to deploy from

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to remove server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /workplace/Questionnaire
git pull origin main
npm install
npm run build:frontend
npm run build:backend
cd backend
pm2 start dist/index.js

0 comments on commit 1230725

Please sign in to comment.