Skip to content

Update pythonanywhere.yml #15

Update pythonanywhere.yml

Update pythonanywhere.yml #15

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": "git pull origin master\n"}' \
-H "Content-Type: application/json"
- name: Reload PythonAnywhere Web App
run: |
curl -s -X POST \
"https://www.pythonanywhere.com/api/v0/user/${{ secrets.PA_USERNAME }}/webapps/akshaybhisikar99.pythonanywhere.com/reload/"
-H "Authorization: Token ${{ secrets.PA_API_TOKEN }}" \