Fix: dm, pulic 메세지 제작 함수 분리 #40
This file contains hidden or 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: Deploy Backend | |
| on: | |
| push: | |
| branches: | |
| - dev # dev 브랜치에 push될 때 실행 | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | |
| - run: echo "Checkout Repository" | |
| - name: Checkout Repository | |
| uses: actions/checkout@v3 | |
| - run: echo "Execute remote ssh & deploy back-end server" | |
| - name: executing remote ssh commands using ssh key | |
| uses: appleboy/ssh-action@v1.2.2 | |
| with: | |
| host: ${{ secrets.HOST }} | |
| username: ${{ secrets.USERNAME }} | |
| key: ${{ secrets.KEY }} | |
| port: ${{ secrets.PORT }} | |
| script: | | |
| cd /home/ubuntu/knit-together | |
| git pull origin dev | |
| pm2 reload ./config/ecosystem.config.js |