Skip to content

Commit

Permalink
Create django.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvan2006 authored Sep 11, 2024
1 parent 02aa011 commit cd26432
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy Django to EC2

on:
push:
branches: "master"

jobs:
deploy:
runs-on: ubuntu-latest

steps:
# Step 1: Checkout the latest code
- name: Checkout code
uses: actions/checkout@v4

# Step 2: Run the deployment script
- name: Run Deployment
run: |
ssh -i ${{ secrets.EC2_SSH_KEY }} [email protected] 'bash -s' < deploy_script.sh
env:
ACTIONS_RUNNER_DEBUG: false

0 comments on commit cd26432

Please sign in to comment.