Skip to content

Update ci-cd.yml

Update ci-cd.yml #43

Workflow file for this run

name: Deploy to PythonAnywhere
on:
push:
branches:
- master # Adjust this if your default branch is named differently
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10' # Specify your Python version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Deploy to PythonAnywhere
env:
PA_API_KEY: ${{ secrets.PA_API_KEY }}
run: |
curl -X POST "https://www.pythonanywhere.com/api/v0/user/GuruTechDev/home/GuruTechDev/reload/" \
-H "Authorization: Token $PA_API_KEY"