Skip to content

Merge pull request #30 from ApptiveDev/develop/1th-backend-connection #11

Merge pull request #30 from ApptiveDev/develop/1th-backend-connection

Merge pull request #30 from ApptiveDev/develop/1th-backend-connection #11

Workflow file for this run

name: Deploy to EC2
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: yarn
- name: Build
run: yarn run build
- name: Copy files to EC2
uses: appleboy/scp-action@master
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.EC2_SSH_KEY }}
port: 22
source: "dist/*"
target: ${{ secrets.WEB_PUBLIC }}