Merge pull request #11 from One-Team-One-Goal/development #7
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 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 |