Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
A91y authored Nov 16, 2024
1 parent 13066f5 commit cc21d35
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy App

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install SSH Key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Deploy to EC2
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_CONNECTION_URL }} << 'EOF'
cd /home/ubuntu/octasol
git pull origin main
npm install
npm run build
pm2 reload octasol-app
EOF

0 comments on commit cc21d35

Please sign in to comment.