Update ci-cd.yml #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to PythonAnywhere | ||
on: | ||
push: | ||
branches: | ||
- master # Adjust this to your main branch if it's different | ||
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: | ||
PYTHONANYWHERE_USERNAME: ${{ secrets.GuruTechDev}} | ||
PYTHONANYWHERE_PASSWORD: ${{ secrets.gurudev@123 }} | ||
Check failure on line 29 in .github/workflows/ci-cd.yml GitHub Actions / Deploy to PythonAnywhereInvalid workflow file
|
||
run: | | ||
curl -u $PYTHONANYWHERE_USERNAME:$PYTHONANYWHERE_PASSWORD \ | ||
-X POST \ | ||
-F "file=@deploy.sh" \ | ||
https://www.pythonanywhere.com/api/v0/user/$.GuruTechDev/webapps/GuruTechDev.pythonanywhere.com/reload/ |