Skip to content

Merge pull request #11 from One-Team-One-Goal/development #7

Merge pull request #11 from One-Team-One-Goal/development

Merge pull request #11 from One-Team-One-Goal/development #7

Workflow file for this run

name: Deploy to AWS EC2
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to EC2
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USER }}
key: ${{ secrets.EC2_SSH_KEY }}
script: |
# Run the deploy script located in the bitwise-deploy repo
# Assumes folder structure: ~/bitwise/bitwise-deploy
cd ~/bitwise/bitwise-deploy
chmod +x aws/deploy.sh
./aws/deploy.sh