Skip to content

Commit

Permalink
Merge pull request #91 from franfreezy/main
Browse files Browse the repository at this point in the history
update
  • Loading branch information
franfreezy authored Dec 2, 2024
2 parents d826751 + 432e476 commit 392191b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy Django Backend

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'

- name: Install dependencies
run: |
cd backend
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Deploy to Azure App Service
uses: azure/webapps-deploy@v2
with:
app-name: <AgriXcubesat>
slot-name: production
package: ./backend

0 comments on commit 392191b

Please sign in to comment.