feat: update env for prod and readme #5
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 App for Production | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
build: | |
name: Checkout, Connect EC2, Build and Deploy App | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout branch | |
uses: actions/checkout@v2 | |
- name: Connect EC2 with SSH KEY | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST_DNS }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.EC2_SSH_KEY }} | |
- name: Build and Deploy App | |
id: build-image | |
run: | | |
make build-production | |
make start-production |