Skip to content

Fixed Delete Contractor #13

Fixed Delete Contractor

Fixed Delete Contractor #13

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