Skip to content

Commit

Permalink
github action 구성
Browse files Browse the repository at this point in the history
  • Loading branch information
riroan committed Mar 29, 2024
1 parent 381e199 commit f05fb49
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Frontend Deploy

on:
push:
branches:
- main
paths:
- 'riroan/**'
- '.github/workflows/frontend.yml'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy
uses: appleboy/ssh-action@v0.1.7
with:
host: ${{secrets.HOST}}
username: ${{secrets.USERNAME}}
key: ${{secrets.KEY}}
port: ${{secrets.PORT}}
script: |
cd ~/riroan.com/riroan
git pull
npm run build

0 comments on commit f05fb49

Please sign in to comment.