Skip to content

Commit

Permalink
deploy automatico v1
Browse files Browse the repository at this point in the history
  • Loading branch information
txiami authored Jun 2, 2024
1 parent e9208fd commit 56f16b7
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy to EC2

on:
push:
branches:
- develop

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Deploy to EC2
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /home/ubuntu/frontend/WallDreams
git pull origin develop
sudo systemctl restart nginx

0 comments on commit 56f16b7

Please sign in to comment.