Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sunminnnnn committed Jun 16, 2024
2 parents f28a8a7 + f54b656 commit d327d71
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy to Server

on:
push:
branches:
- main

jobs:
build:
name: Build
runs-on: ubuntu-latest

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

- name: Execute deploy script on EC2
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_SSH_KEY }}
port: 22
script: |
cd ~/STUDIO-EYE-WEB-MANAGEMENT
git pull origin main
sudo systemctl restart nginx

0 comments on commit d327d71

Please sign in to comment.