Skip to content

Merge branch 'main' of https://github.com/JHM69/CS24-p2-quantum_guys #10

Merge branch 'main' of https://github.com/JHM69/CS24-p2-quantum_guys

Merge branch 'main' of https://github.com/JHM69/CS24-p2-quantum_guys #10

Workflow file for this run

name: Deploy to EC2
on:
push:
branches:
- main # Set this to the branch you want to deploy from
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Copy repository to EC2
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.SSH_KEY }}
port: 22
source: "."
target: "~/CS24-p2-quantum_guys"
- name: Executing remote SSH commands
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.SSH_KEY }}
port: 22
script: |
cd ~/CS24-p2-quantum_guys
bash deploy.sh