Merge pull request #68 from devocean-finut/fix/issue #19
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: Deploy to EC2 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up SSH key | |
uses: appleboy/ssh-action@master | |
with: | |
key: ${{ secrets.FINUT_SSH_KEY }} | |
host: ${{ secrets.FINUT_EC2_HOST }} | |
username: ${{ secrets.FINUT_EC2_USER }} | |
script: | | |
cd app | |
./deploy.sh |