Skip to content

Update .env-example #35

Update .env-example

Update .env-example #35

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