Skip to content

Update README.md

Update README.md #11

name: Deploy to PythonAnywhere
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Update code on PythonAnywhere
run: |
curl -s -X POST \
"https://www.pythonanywhere.com/api/v0/user/${{ secrets.PA_USERNAME }}/consoles/38366532/send_input/" \
-H "Authorization: Token ${{ secrets.PA_API_TOKEN }}" \
-d '{"input": "cd metro-fare-calculator && git pull origin main\n"}' \
-H "Content-Type: application/json"