Refactor: image upload 훅으로 추상화, giscus attribute 상수화 #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: dev branch auto ci process script | |
on: | |
pull_request: | |
branches: production | |
types: | |
- closed | |
jobs: | |
deploy: | |
name: deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: excuting remote ssh commands | |
uses: appleboy/[email protected] # ssh 접속하는 오픈소스 | |
with: | |
host: ${{ secrets.REMOTE_IP }} # 인스턴스 IP | |
username: ${{ secrets.REMOTE_USER }} # 우분투 아이디 | |
key: ${{ secrets.REMOTE_PRIVATE_KEY }} # ec2 instance pem key | |
script: | # 실행할 스크립트 | |
cd Blog/server | |
git pull origin production | |
export NVM_DIR=~/.nvm | |
source ~/.nvm/nvm.sh | |
npm run reload |