chore: addded github action: deploy-main.yml #12
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: remote ssh command for deploy | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
# 레포지토리 체크아웃 | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
# SSH를 사용하여 스크립트 실행 | |
- name: executing remote ssh commands using key | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.KEY }} | |
port: ${{ secrets.PORT }} | |
script: | | |
./git/react-api-cicd/scripts/deploy.sh |